-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Labels
area/libMethods and functions that exist in the cobra library and consumed by usersMethods and functions that exist in the cobra library and consumed by userskind/featureA feature request for cobra; new or enhanced behaviorA feature request for cobra; new or enhanced behavior
Description
Just wanted to check if there is a way to get Cobra to print help text for ARGS.
Say I have a CLI whose usage is:
do [SOMETHING]
I was wondering if it was possible to get do --help
to print:
Usage:
do [SOMETHING]
[SOMETHING]: Allowed values are laundry, dishes or dinner
Flags:
....
The readme doesn't mention anything like this, and there are no examples on SetHelpTemplate, so I'm unsure if that is what needs to be used here. Would someone be able clarify if this is possible? And if not, are there any other options?
Thanks!
n10v, kkurri, christiangalsterer, gpoitch, glenux and 24 moreReikimann
Metadata
Metadata
Assignees
Labels
area/libMethods and functions that exist in the cobra library and consumed by usersMethods and functions that exist in the cobra library and consumed by userskind/featureA feature request for cobra; new or enhanced behaviorA feature request for cobra; new or enhanced behavior