This commit is contained in:
@@ -44,7 +44,7 @@ var runCmd = &cobra.Command{
|
||||
count := strings.Count(crun, "%s")
|
||||
l := len(args)
|
||||
if l-1 != count {
|
||||
return fmt.Errorf("not enough arguments to fill all command placeholders, required: %d - have: %d", count, l)
|
||||
return fmt.Errorf("not enough arguments to fill all command placeholders, required: %d - have: %d", count, l-1)
|
||||
}
|
||||
|
||||
cli, err := client.New(cfgserver)
|
||||
|
Reference in New Issue
Block a user