neoargs 0.0.1 copy "neoargs: ^0.0.1" to clipboard
neoargs: ^0.0.1 copied to clipboard

A fluent and idiomatic argument parser (usually for command-line apps) in Dart.

CHANGELOG #

0.0.1 #

  • Added StringArgs, a minimist-like API for simple string-based parsing:
// Assume args = ["foo.txt", "--output", "bar.txt"]
void main(List<String> args) {
  final parsed = StringArgs.parse(args);
  print(parsed.requireParameter(0, debugName: 'input'));
  print(parsed.getOption('output').requireOnce());
}
  • Added StringArgsOption, a name-value pair class that represents the parsed result of something like --name=value or --name=value1 --name=value2.

0.0.0 #

  • Initial release, which is mostly a stub library with a function argv.
1
likes
160
pub points
0%
popularity

Publisher

verified publisherneodart.dev

A fluent and idiomatic argument parser (usually for command-line apps) in Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on neoargs