args icon indicating copy to clipboard operation
args copied to clipboard

A command-line argument parsing library for Dart.

Results 53 args issues
Sort by recently updated
recently updated
newest added

Currently only `addOption` has the `allowMultiple` param, but it can be useful to allow multiple flags as well. For example to specify a verbosity level many scripts use multiple verbose...

Hello! i tryed adding a flag for help final parser = ArgParser() ..addFlag('help', abbr: '?', defaultsTo: false, help: "Help about the options") but when using --help it works, with -?...

Currently if you have a basic command that has one or more sub commands then if you call that command without one of those subcommands being passed it prints the...

Hi thanks for this helpful library! However, it is quite boilerplate to repeat code like: ``` class CommandOne extends Command { ... CommandOne() { argParser.addOption('firstArgument'); argParser.addOption('secondArgument'); } @override Future run()...

type-enhancement

Not sure if it is wanted but if I use an option with a dot like `p.name` then args are not read correctly. ```dart final parser = ArgParser(); parser.addOption('p.name'); print(parser.parse(['--p.name',...

type-enhancement
contributions-welcome

https://github.com/dart-lang/args/pull/196, https://github.com/dart-lang/args/pull/183, and https://github.com/dart-lang/args/issues/194 indicate to me that our pattern of throwing for invalid user input is causing pain. Running an application with invalid arguments isn't an exceptional occurrence. I...

type-enhancement
next-breaking-release

Some other arg parsing libraries support an `--undefok` option which suppresses the error that would normally surface if an unknown flag or option is passed. For example: https://gflags.github.io/gflags/#special Add built...

cla: yes

As mentioned in #194 there is a bug when you use the mandatory flag in an option with an help flag (to display the usage message). Example (from [here](https://stackoverflow.com/questions/67384823/how-to-use-mandatory-field-in-dart-args-package)): ```dart...

cla: yes

Initiated in https://github.com/flutter/flutter/issues/5797 When a program prints the usage, it usually returns non-zero, e.g. `git` and `help`.

While we can have mandatory flags/options, we cannot have mandatory rest type arguments. For example, a Command that implements *nix style cp command might want to require two mandatory arguments:...

type-enhancement