Using os.Args is not necessary

This commit is contained in:
Ryan Cavicchioni 2021-02-07 17:31:57 -06:00
parent d8be978ba8
commit 8c6567bc8a
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -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
}