You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, p.WriteHelp always writes the help for the top-level command, meaning there is no way to manually print the help message for a specific subcommand.
We could expose the cmd struct as Subcommand and add WriteHelpForSubcommand and WriteUsageForSubcommand to the Parser struct.
The text was updated successfully, but these errors were encountered:
@alexflint This would be great. Just encountered this where I wanted to write a description and help text for the subcommand as a whole. Exposing the same capabilities to Subcommand as the top level command would be great
Currently,
p.WriteHelp
always writes the help for the top-level command, meaning there is no way to manually print the help message for a specific subcommand.We could expose the
cmd
struct asSubcommand
and addWriteHelpForSubcommand
andWriteUsageForSubcommand
to theParser
struct.The text was updated successfully, but these errors were encountered: