flaggy icon indicating copy to clipboard operation
flaggy copied to clipboard

How to explicitly print subcommand help

Open kahunacohen opened this issue 3 years ago • 2 comments

How do I explicitly print out a subcommand's help text (usage)?

kahunacohen avatar Nov 10 '21 08:11 kahunacohen

this works for me:

$ foo bar -h

where bar is the subcommand

craftyguy avatar Mar 25 '22 17:03 craftyguy

Currently you can show help on a flaggy.Parser, but not a flaggy.Subcommand. I agree that it would be nice to call help on a flaggy.Subcommand directly, but it would take a little re-factoring to prevent duplicate code... Right now this is done via a template rendering that happens on the Parser...

integrii avatar Apr 25 '22 23:04 integrii