From 7bfa5afd0005744a1edc5649d6ad9cc799680d42 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 26 Mar 2015 17:33:58 -0700 Subject: [PATCH] command/remote-config: show flag parse errors /cc @sethvargo --- command/remote_config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command/remote_config.go b/command/remote_config.go index 46ab3e13b..e2b865a6d 100644 --- a/command/remote_config.go +++ b/command/remote_config.go @@ -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 }