exitcode 1.0.0 icon indicating copy to clipboard operation
exitcode: ^1.0.0 copied to clipboard

Preferred system exit codes as defined by sysexits.h

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...
  }
}
0
likes
120
pub points
0%
popularity

Publisher

unverified uploader

Preferred system exit codes as defined by sysexits.h

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

More

Packages that depend on exitcode