-
Couldn't load subscription status.
- Fork 6
Closed
Description
I was just playing around with your library (cool work so far) and noticed that the version flag is not handled correctly. Code to reproduce:
import std.stdio;
import commandr;
void main(string[] args) {
auto a = new Program("example", "3.14")
.add(new Argument("foo", "a mandatory argument"))
.parse(args);
writeln(a.arg("foo"));
}Expected output:
$ ./example --version
3.14Actual output:
$ ./example --version
Error: missing required argument foo
example [-h] [--version] fooI think already I have a solution for this and will open a PR after I tested it.
Metadata
Metadata
Assignees
Labels
No labels