pacak / bpaf

Command line parser with applicative interface
340 stars 17 forks source link

Hidden commands are not checked for validity/invariants #380

Open ysndr opened 1 month ago

ysndr commented 1 month ago

Apparently bpaf skips hidden args and subcommands when checking parser invariants:

https://github.com/pacak/bpaf/blob/6f01ee050f75f6d759bda929a64cfd6e5e44e24d/src/meta.rs#L129

I personally believe it shouldn't as those args are still required to work under the same invariants as non-hidden args.

pacak commented 1 month ago

Sure, I'll make a fix.