These are chat archives for kbknapp/clap-rs

24th
Aug 2015
Alexander Kuvaev
@Vinatorul
Aug 24 2015 14:50
It looks like #188 was always there, I think if I add check for subcomand present here if (!self.subcmds_neg_reqs) && self.validate_required(&matches) it will resolve issue.
Kevin K.
@kbknapp
Aug 24 2015 15:58
In theory everything should work just like normal up until a subcommand is detected, once it's detected it would normally fail parsing due to a missing required argument, but with this setting, it should ignore that failure
that's at least the birds eye view
So up until a subcomand is detected, this setting should be effectively a NOP
Alexander Kuvaev
@Vinatorul
Aug 24 2015 16:56
I checked on 1.2.0 - same behavior, so I think my solution will be suitable