From f421bd906a92c890bfb654a65713b58365d5b819 Mon Sep 17 00:00:00 2001 From: jake Date: Thu, 19 Jun 2025 17:34:53 -0400 Subject: [PATCH] small fixes before merge --- cmd/command/run.go | 2 +- cmd/server/active.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/command/run.go b/cmd/command/run.go index de4c67d..610eaca 100644 --- a/cmd/command/run.go +++ b/cmd/command/run.go @@ -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) diff --git a/cmd/server/active.go b/cmd/server/active.go index fbb63b0..544be6f 100644 --- a/cmd/server/active.go +++ b/cmd/server/active.go @@ -12,7 +12,7 @@ import ( ) var activeCmd = &cobra.Command{ - Use: "active", + Use: "activate", Example: "mctl server active ", Short: "sets the active server to run commands on", SilenceUsage: true,