minimist 0.1.1 copy "minimist: ^0.1.1" to clipboard
minimist: ^0.1.1 copied to clipboard

outdated

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.

0
likes
0
pub points
0%
popularity

Publisher

verified publishermakepad.fr

A Dart library for parsing command ling options and arguments inspired from minimist npm package.wh

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on minimist