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
There are cases where it would be nice to hide some commands from the help/usage output. An example would be setup or post-install work that is not part of the typical user workflow (e.g. completion). The help output becomes less useful when it is diluted with these one-time or setup type commands.
This could be supported by not adding usage for commands with false for a description. E.g.
yargs.command('post-install',false,handler);
If someone wanted the completion command to not show up in the help doc, this could be made to work:
yargs.completion('completion',false);
Only commands that are registered with usage are eligible for completion, so "hidden" commands would not show up as completion candidates. I think this is consistent with being hidden.
There are cases where it would be nice to hide some commands from the help/usage output. An example would be setup or post-install work that is not part of the typical user workflow (e.g.
completion
). The help output becomes less useful when it is diluted with these one-time or setup type commands.This could be supported by not adding usage for commands with
false
for a description. E.g.If someone wanted the
completion
command to not show up in the help doc, this could be made to work:Only commands that are registered with usage are eligible for completion, so "hidden" commands would not show up as completion candidates. I think this is consistent with being hidden.
Prior art:
noHelp
hidden
argparse.SUPPRESS
The text was updated successfully, but these errors were encountered: