This commit is contained in:
parent
71ace969d3
commit
f421bd906a
@ -44,7 +44,7 @@ var runCmd = &cobra.Command{
|
|||||||
count := strings.Count(crun, "%s")
|
count := strings.Count(crun, "%s")
|
||||||
l := len(args)
|
l := len(args)
|
||||||
if l-1 != count {
|
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)
|
cli, err := client.New(cfgserver)
|
||||||
|
@ -12,7 +12,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var activeCmd = &cobra.Command{
|
var activeCmd = &cobra.Command{
|
||||||
Use: "active",
|
Use: "activate",
|
||||||
Example: "mctl server active <server>",
|
Example: "mctl server active <server>",
|
||||||
Short: "sets the active server to run commands on",
|
Short: "sets the active server to run commands on",
|
||||||
SilenceUsage: true,
|
SilenceUsage: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user