Skip to content

Commit 342c38c

Browse files
Ramkishor ChaladiRamkishor Chaladi
authored andcommitted
added T of Incorrect Usage :
1 parent e8b3e70 commit 342c38c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugin/metadata/args.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func ExactArgs(n int) cobra.PositionalArgs {
9696
// Just one arg
9797
func 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
122122
func 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

Comments
 (0)