diff --git a/cmd/command.go b/cmd/command.go index 3dd376d..80c9473 100644 --- a/cmd/command.go +++ b/cmd/command.go @@ -23,6 +23,7 @@ type CmdArgs struct { Flags Flags Client *lifx.Client Config Config + Name string } type Flags struct { diff --git a/cmd/main.go b/cmd/main.go index ad497e4..d978c3a 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -237,6 +237,7 @@ func Main(args []string) (int, error) { fs.Parse(args[2:]) cmdArgs.Flags = Flags{FlagSet: fs} + cmdArgs.Name = command exitCode, err := cmd.Func(cmdArgs) if err != nil { err = fmt.Errorf("fatal: %s", err)