Merge pull request #2512 from edsantiago/yet_more_usage_fixes

A few more usage-message tweaks
This commit is contained in:
OpenShift Merge Robot
2019-03-04 06:18:54 -08:00
committed by GitHub
3 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,7 @@ var (
listSubCommand cliconfig.PsValues listSubCommand cliconfig.PsValues
_listSubCommand = &cobra.Command{ _listSubCommand = &cobra.Command{
Use: strings.Replace(_psCommand.Use, "ps", "list", 1), Use: strings.Replace(_psCommand.Use, "ps", "list", 1),
Args: noSubArgs,
Short: _psCommand.Short, Short: _psCommand.Short,
Long: _psCommand.Long, Long: _psCommand.Long,
Aliases: []string{"ls"}, Aliases: []string{"ls"},

View File

@ -18,7 +18,7 @@ var (
Starts one or more pods. The pod name or ID can be used. Starts one or more pods. The pod name or ID can be used.
` `
_podStartCommand = &cobra.Command{ _podStartCommand = &cobra.Command{
Use: "start POD [POD...]", Use: "start [flags] POD [POD...]",
Short: "Start one or more pods", Short: "Start one or more pods",
Long: podStartDescription, Long: podStartDescription,
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {

View File

@ -23,6 +23,7 @@ var (
` `
_pruneSystemCommand = &cobra.Command{ _pruneSystemCommand = &cobra.Command{
Use: "prune", Use: "prune",
Args: noSubArgs,
Short: "Remove unused data", Short: "Remove unused data",
Long: pruneSystemDescription, Long: pruneSystemDescription,
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {