Open swiftcoder opened 9 years ago
+1 years later 😬
As a Pythonista I'm at home with this library, thanks for writing it.
I'm trying to learn Rust and would be glad to fix this but to be honest I'm a bit lost. Anyone kind enough to nudge me in the right direction?
I'm looking at check_required
in parser.rs:423:
When we check for "input-files", self.parser.arguments
is empty, hence the for
loop body is never executed. My first thought was adding information if var
is positional or not, then if required and self.parser.arguments is empty we could panic.
The debugger I'm using with Visual Studio Code is pretty much useless for hashmaps, is there a better option?
I set .required() on an argument configured to Collect, with the expectation that an error would occur if the user did not pass in at least one value. This does not appear to be the case, as can be demonstrated by running the example program without any arguments: