cli: Add flag groups to make help
output more readable
#935
Labels
area/ig
`ig` tool
area/kubectl-gadget
lifecycle/staleproof
Avoid this issue / PR being marked as stale by the bot.
Current situation
When running
kubectl-gadget <cat> <gadget> --help
the list of flags is quite long and it is not easy to distinguish which flags are specific for that gadget and what are general.For instance, the following is the output of the
bind
trace gadget, but it is not easy to identify that--pid
,--ports
and--ingore-errors
are specific for this gadget. In addition,Global Flags
is too generic, it could be something likeKubernetes Flags
?Ideal future situation
For instance, the flags could be divided into groups like this:
Notice it is just an example. This issue aims to start the discussion about how they could be divided and how to do that.
Implementation details:
This feature doesn't exist yet in cobra. However, the discussion was already opened, and a proposal was already made.
The text was updated successfully, but these errors were encountered: