neoargs 0.0.1 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
.