@@ -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
@@ -105,23 +105,23 @@ func OneArgs(cmd *cobra.Command, args []string) error {
105105// Just two arg
106106func TwoArgs (cmd * cobra.Command , args []string ) error {
107107 if len (args ) != 2 {
108- return fmt .Errorf ("%s: %s" , T ("Incorrect Usage" ), T ("This command requires two arguments." ))
108+ return fmt .Errorf ("%s%s" , T ("Incorrect Usage: " ), T ("This command requires two arguments." ))
109109 }
110110 return nil
111111}
112112
113113// Just three arg
114114func ThreeArgs (cmd * cobra.Command , args []string ) error {
115115 if len (args ) != 3 {
116- return fmt .Errorf ("%s: %s" , T ("Incorrect Usage" ), T ("This command requires three arguments." ))
116+ return fmt .Errorf ("%s%s" , T ("Incorrect Usage: " ), T ("This command requires three arguments." ))
117117 }
118118 return nil
119119}
120120
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}
0 commit comments