command: don't show confusing error on usage output
This commit is contained in:
parent
4e866ced39
commit
cac55a1e80
|
@ -54,7 +54,9 @@ func (cmd *AgentCommand) readConfig() *config.RuntimeConfig {
|
|||
config.AddFlags(fs, &flags)
|
||||
|
||||
if err := cmd.BaseCommand.Parse(cmd.args); err != nil {
|
||||
if !strings.Contains(err.Error(), "help requested") {
|
||||
cmd.UI.Error(fmt.Sprintf("error parsing flags: %v", err))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue