mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
command: don't show confusing error on usage output
This commit is contained in:
parent
59b84fcda3
commit
3a7fb35fb0
@ -54,7 +54,9 @@ func (cmd *AgentCommand) readConfig() *config.RuntimeConfig {
|
||||
config.AddFlags(fs, &flags)
|
||||
|
||||
if err := cmd.BaseCommand.Parse(cmd.args); err != nil {
|
||||
cmd.UI.Error(fmt.Sprintf("error parsing flags: %v", err))
|
||||
if !strings.Contains(err.Error(), "help requested") {
|
||||
cmd.UI.Error(fmt.Sprintf("error parsing flags: %v", err))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user