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.

example/exitcode_example.dart

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 {
    stdout.writeln('Nice, you provided "${arguments.first}" as the first argument!');
  }
}
1
likes
160
points
113
downloads

Publisher

verified publishermateusfccp.me

Weekly Downloads

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on exitcode