mirror of https://github.com/status-im/consul.git
revert monkey patch for mitchellh/cli
This commit is contained in:
parent
a49711b8bf
commit
366ec9a565
|
@ -578,6 +578,12 @@ func (c *CLI) processArgs() {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check for help flags.
|
||||||
|
if arg == "-h" || arg == "-help" || arg == "--help" {
|
||||||
|
c.isHelp = true
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
// Check for autocomplete flags
|
// Check for autocomplete flags
|
||||||
if c.Autocomplete {
|
if c.Autocomplete {
|
||||||
if arg == "-"+c.AutocompleteInstall || arg == "--"+c.AutocompleteInstall {
|
if arg == "-"+c.AutocompleteInstall || arg == "--"+c.AutocompleteInstall {
|
||||||
|
@ -598,12 +604,6 @@ func (c *CLI) processArgs() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for help flags.
|
|
||||||
if arg == "-h" || arg == "-help" || arg == "--help" {
|
|
||||||
c.isHelp = true
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
if arg != "" && arg[0] == '-' {
|
if arg != "" && arg[0] == '-' {
|
||||||
// Record the arg...
|
// Record the arg...
|
||||||
c.topFlags = append(c.topFlags, arg)
|
c.topFlags = append(c.topFlags, arg)
|
||||||
|
|
Loading…
Reference in New Issue