vendor: patch github.com/mitchellh/cli until help output is fixed

We need to init the flagset that cli uses to generate the help
outside of the Run method since Run isn't called anymore for
printing help.
pull/3037/head
Frank Schroeder 8 years ago
parent 205cbe5fc8
commit c0680660d5
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD

@ -398,12 +398,6 @@ func (c *CLI) processArgs() {
break
}
// Check for help flags.
if arg == "-h" || arg == "-help" || arg == "--help" {
c.isHelp = true
continue
}
if c.subcommand == "" {
// Check for version flags if not in a subcommand.
if arg == "-v" || arg == "-version" || arg == "--version" {
@ -411,6 +405,12 @@ func (c *CLI) processArgs() {
continue
}
// Check for help flags.
if arg == "-h" || arg == "-help" || arg == "--help" {
c.isHelp = true
continue
}
if arg != "" && arg[0] == '-' {
// Record the arg...
c.topFlags = append(c.topFlags, arg)

Loading…
Cancel
Save