diff --git a/client/searchctl.go b/client/searchctl.go index b084c13..1f3fea0 100644 --- a/client/searchctl.go +++ b/client/searchctl.go @@ -31,9 +31,9 @@ type ResponseBack struct { func main() { shutdownPtr := flag.Bool("shutdown", false, "Shutdown server") - suspendinstancePtr := flag.String("suspend-instance", "", "Instance to Suspend") - resumeinstancePtr := flag.String("resume-instance", "", "Instance to Resume") - addinstancePtr := flag.String("add-instance", "", "Instance to add") + suspendPtr := flag.String("suspend", "", "Instance to Suspend") + resumePtr := flag.String("resume", "", "Instance to Resume") + addPtr := flag.String("add", "", "Instance to add") statusPtr := flag.Bool("status", false, "Check status") // usernamePtr := flag.String("username", "", "Set username") // passwordPtr := flag.String("password", "", "Set password") @@ -52,16 +52,16 @@ func main() { totalflags++ commandMap.Type = "status" } - if *addinstancePtr != "" { + if *addPtr != "" { totalflags++ commandMap.Type = "add" - commandMap.Endpoint = *addinstancePtr + commandMap.Endpoint = *addPtr } - if *suspendinstancePtr != "" { + if *suspendPtr != "" { totalflags++ commandMap.Type = "suspend" } - if *resumeinstancePtr != "" { + if *resumePtr != "" { totalflags++ commandMap.Type = "resume" }