File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ func ExactArgs(n int) cobra.PositionalArgs {
9696// Just one arg
9797func OneArgs (cmd * cobra.Command , args []string ) error {
9898 if len (args ) != 1 {
99- return fmt .Errorf ("%s : %s" , T ("Incorrect Usage" ), T ("This command requires one argument." ))
99+ return fmt .Errorf ("%s %s" , T ("Incorrect Usage : " ), T ("This command requires one argument." ))
100100 // return fmt.Errorf(T("Incorrect Usage: This command requires one argument."))
101101 }
102102 return nil
@@ -121,7 +121,7 @@ func ThreeArgs(cmd *cobra.Command, args []string) error {
121121// Just four arg
122122func FourArgs (cmd * cobra.Command , args []string ) error {
123123 if len (args ) != 4 {
124- return fmt .Errorf ("%s: %s" , T ("Incorrect Usage" ), T ("This command requires four arguments." ))
124+ return fmt .Errorf ("%s %s" , T ("Incorrect Usage : " ), T ("This command requires four arguments." ))
125125 }
126126 return nil
127127}
You can’t perform that action at this time.
0 commit comments