spf13--cobra/site/content
Marc Khouzam b1acb500a2 Remove the default "completion" cmd if it is alone
When a program has no sub-commands, its root command can accept
arguments.  If we add the default "completion" command to such programs
they will now have a sub-command and will no longer accept arguments.

What we do instead for this special case, is only add the "completion"
command if it is being called, or if it is being completed itself.

We want to have the "completion" command for such programs because it
will allow the completion of flags and of arguments (if provided
by the program).

Signed-off-by: Marc Khouzam <marc.khouzam@gmail.com>
2023-06-21 07:08:45 -04:00
..
completions Remove the default "completion" cmd if it is alone 2023-06-21 07:08:45 -04:00
docgen Move documentation sources to site/content (#1428) 2023-06-20 17:15:36 -04:00
active_help.md Move documentation sources to site/content (#1428) 2023-06-20 17:15:36 -04:00
projects_using_cobra.md Move documentation sources to site/content (#1428) 2023-06-20 17:15:36 -04:00
user_guide.md Move documentation sources to site/content (#1428) 2023-06-20 17:15:36 -04:00