minimist 0.1.1 minimist: ^0.1.1 copied to clipboard
A Dart library for parsing command ling options and arguments inspired from minimist npm package.wh
minimist #
A Dart module for parsing command line parameters and options, inspired from the minimist npm module.
Usage #
A simple usage example:
import 'package:minimist/minimist.dart';
main(List<String> arguments) {
var args = Minimist(arguments).args;
print(args);
}
$ dart example/minimist.dart -f foo -b bar
{_: [], f: foo, b: bar}
$ dart example/minimist.dart -x 0 -y 1 -n2 -abc --hello=world foo bar baz -def42
{_: [foo, bar, baz], x: 0, y: 1, n: 2, a: true, b: true, c: true, hello: world, d: true, e: true, f: 42}
Features and bugs #
Please file feature requests and bugs at the issue tracker.