ernestio / ernest

Ernest is a tool to define, manage and collaborate on your infrastructure
http://ernest.io/
Mozilla Public License 2.0
17 stars 6 forks source link

'env schedule add --help' throws an error #830

Closed reidjc closed 6 years ago

reidjc commented 6 years ago
$ ernest env schedule add --help
add flag redefined:
panic: add flag redefined:

goroutine 1 [running]:
flag.(*FlagSet).Var(0xc4202ec180, 0x1711d20, 0xc42029fc90, 0x0, 0x0, 0x0, 0x0)
    /usr/local/Cellar/go/1.9.2/libexec/src/flag/flag.go:793 +0x5e1
flag.(*FlagSet).StringVar(0xc4202ec180, 0xc42029fc90, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
    /usr/local/Cellar/go/1.9.2/libexec/src/flag/flag.go:696 +0x8b
flag.(*FlagSet).String(0xc4202ec180, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1)
    /usr/local/Cellar/go/1.9.2/libexec/src/flag/flag.go:709 +0x8b
github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli.StringFlag.ApplyWithError.func1(0x0, 0x0)
    /Users/jason/src/github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli/flag.go:421 +0xbf
github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli.eachName(0x0, 0x0, 0xc42008fe28)
    /Users/jason/src/github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli/flag.go:94 +0xb2
github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli.StringFlag.ApplyWithError(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
    /Users/jason/src/github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli/flag.go:416 +0xcb
github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli.(*StringFlag).ApplyWithError(0x1764dc0, 0xc4202ec180, 0x1764dc0, 0x18cb0b0)
    <autogenerated>:1 +0x58
github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli.flagSet(0x14c433c, 0x3, 0xc4202ec120, 0x4, 0x6, 0xc4202ec120, 0x3, 0x6)
    /Users/jason/src/github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli/flag.go:80 +0xfc
github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli.Command.Run(0x14c433c, 0x3, 0x0, 0x0, 0x174b0e0, 0x1, 0x1, 0x0, 0x0, 0x0, ...)
    /Users/jason/src/github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli/command.go:109 +0xb0
github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli.(*App).RunAsSubcommand(0xc420079380, 0xc420094840, 0x0, 0x0)
    /Users/jason/src/github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli/app.go:379 +0xa7b
github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli.Command.startApp(0x14c80d5, 0x8, 0x0, 0x0, 0x174b0c0, 0x1, 0x1, 0x14da2fc, 0x2a, 0x0, ...)
    /Users/jason/src/github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli/command.go:298 +0x944
github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli.Command.Run(0x14c80d5, 0x8, 0x0, 0x0, 0x174b0c0, 0x1, 0x1, 0x14da2fc, 0x2a, 0x0, ...)
    /Users/jason/src/github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli/command.go:98 +0x1319
github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli.(*App).RunAsSubcommand(0xc4200791e0, 0xc4200946e0, 0x0, 0x0)
    /Users/jason/src/github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli/app.go:379 +0xa7b
github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli.Command.startApp(0x14c9823, 0xb, 0x0, 0x0, 0x174afd0, 0x1, 0x1, 0x14d4e56, 0x1f, 0x0, ...)
    /Users/jason/src/github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli/command.go:298 +0x944
github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli.Command.Run(0x14c9823, 0xb, 0x0, 0x0, 0x174afd0, 0x1, 0x1, 0x14d4e56, 0x1f, 0x0, ...)
    /Users/jason/src/github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli/command.go:98 +0x1319
github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli.(*App).Run(0xc420079040, 0xc420010140, 0x5, 0x5, 0x0, 0x0)
    /Users/jason/src/github.com/ernestio/ernest-cli/vendor/github.com/urfave/cli/app.go:255 +0x6f8
main.main()
    /Users/jason/src/github.com/ernestio/ernest-cli/main.go:38 +0x3f3
$