Merge pull request #2178 from carlory/remove-DisableFlagsInUseLine
enable addition of [flags] to the usage line
This commit is contained in:
commit
0bc4742a2b
|
@ -34,7 +34,6 @@ func NewCmdDescribe(karmadaConfig KarmadaConfig, parentCommand string) *cobra.Co
|
|||
|
||||
cmd := &cobra.Command{
|
||||
Use: "describe (-f FILENAME | TYPE [NAME_PREFIX | -l label] | TYPE/NAME) (-C CLUSTER)",
|
||||
DisableFlagsInUseLine: true,
|
||||
Short: "Show details of a specific resource or group of resources in a cluster",
|
||||
SilenceUsage: true,
|
||||
Example: describeExample(parentCommand),
|
||||
|
|
|
@ -30,7 +30,6 @@ func NewCmdExec(karmadaConfig KarmadaConfig, parentCommand string) *cobra.Comman
|
|||
|
||||
cmd := &cobra.Command{
|
||||
Use: "exec (POD | TYPE/NAME) [-c CONTAINER] [flags] (-C CLUSTER) -- COMMAND [args...]",
|
||||
DisableFlagsInUseLine: true,
|
||||
Short: "Execute a command in a container in a cluster",
|
||||
Long: "Execute a command in a container in a cluster",
|
||||
Example: execExample(parentCommand),
|
||||
|
|
|
@ -67,7 +67,6 @@ func NewCmdGet(karmadaConfig KarmadaConfig, parentCommand string) *cobra.Command
|
|||
o := NewCommandGetOptions("karmadactl", ioStreams)
|
||||
cmd := &cobra.Command{
|
||||
Use: "get [NAME | -l label | -n namespace] [flags]",
|
||||
DisableFlagsInUseLine: true,
|
||||
Short: getShort,
|
||||
SilenceUsage: true,
|
||||
Example: getExample(parentCommand),
|
||||
|
|
Loading…
Reference in New Issue