Describe the bug
The flags seem not be read correctly leading to a Too many arguments provided for command error
To Reproduce
Run e1_simple_cli.zig example to see the error as Error: Too many arguments provided for command 'chilli-app'.
Expected behavior
The --config parameter should be able to process the followed value and still invoke the run command correctly
Additional context
I think the issue lies here
while (arg_iterator.peek()) |arg| {
if (std.mem.startsWith(u8, arg, "-")) break; // <-- it stops here when parsing `--config`
...
}
Describe the bug
The flags seem not be read correctly leading to a
Too many arguments provided for commanderrorTo Reproduce
Run
e1_simple_cli.zigexample to see the error asError: Too many arguments provided for command 'chilli-app'.Expected behavior
The
--configparameter should be able to process the followed value and still invoke theruncommand correctlyAdditional context
I think the issue lies here