exitcode 1.0.1 copy "exitcode: ^1.0.1" to clipboard
exitcode: ^1.0.1 copied to clipboard

Preferred system exit codes as defined by sysexits.h from FreeBSD.

exitcode #

System exit code constants as defined by sysexits.h from FreeBSD.

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...
  }
}
1
likes
160
points
134
downloads

Publisher

verified publishermateusfccp.me

Weekly Downloads

Preferred system exit codes as defined by sysexits.h from FreeBSD.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on exitcode