Open b-jazz opened 5 years ago
Oh yeah, I had a little trouble around this when I was implementing it. Since the flag is the same for both the intersects
and contains
subcommands I wanted to avoid having to repeat the code for it in both places. So the solution I found was to mark it as "global" and put it under the filter
command instead. But I see now that this has the confusing effect you are describing. I'll poke around more in the Clap docs and see if there is a cleaner way around this.
Example where the commands are specified in the order according to the help text:
Example with the "correct" order:
Help text: