command/remote-config: show flag parse errors

/cc @sethvargo
This commit is contained in:
Mitchell Hashimoto 2015-03-26 17:33:58 -07:00
parent 35da19cc1f
commit 7bfa5afd00
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ func (c *RemoteConfigCommand) Run(args []string) int {
cmdFlags.Var((*FlagKV)(&config), "backend-config", "config")
cmdFlags.Usage = func() { c.Ui.Error(c.Help()) }
if err := cmdFlags.Parse(args); err != nil {
c.Ui.Error(fmt.Sprintf("\nError parsing CLI flags: %s", err))
return 1
}