Skip to content

Preferred system exit codes as defined by sysexits.h

License

Notifications You must be signed in to change notification settings

mateusfccp/exitcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exitcode

System exit code constants as defined by sysexits.h

Example

import 'dart:io';

import 'package:exitcode/exitcode.dart' as exitcode;

void main(List<String> arguments) {
  if (arguments.isEmpty) {
    stdout.writeln('You should provide an argument!');
    exit(exitcode.usage);
  } else {
    // Do something...
  }
}

About

Preferred system exit codes as defined by sysexits.h

Resources

License

Stars

Watchers

Forks

Languages