Owez / argi

Argument parsing for the future 🚀
https://crates.io/crates/argi
Apache License 2.0
128 stars 1 forks source link

Optional commands shouldn't take precident over subcommands #18

Open Owez opened 3 years ago

Owez commented 3 years ago

Optional arguments are currently gobbling up valid subcommands. For example, when a user tries ab cd and cd is a command but ab has optional data, optional takes precedence and gobbles when it shouldn't. This issue was taken from these two old and quite ambiguous comments:

// TODO: optional is gobbling others, need to maybe peek and check
// TODO: rewrite data