From 8c6567bc8ade0785ff98043cb64e159bd6c70ab6 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Sun, 7 Feb 2021 17:31:57 -0600 Subject: [PATCH] Using os.Args is not necessary --- cmd/setcolor.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/setcolor.go b/cmd/setcolor.go index d936737..fd5a230 100644 --- a/cmd/setcolor.go +++ b/cmd/setcolor.go @@ -2,7 +2,6 @@ package lumecmd import ( "fmt" - "os" lifx "git.kill0.net/chill9/lume" ) @@ -23,7 +22,7 @@ func SetColorCmd(args CmdArgs) (int, error) { name := args.Flags.String("name") if (hueFlag == "" || saturationFlag == "") && rgbFlag == "" && name == "" { - printCmdHelp(os.Args[1]) + printCmdHelp(args.Name) return ExitFailure, nil }