From 07e5f3ff41073d03c2294d855269ea86381648e3 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Fri, 5 Dec 2014 15:18:53 -0800 Subject: [PATCH] command/remote: Improve UI output for remote --- command/remote.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/command/remote.go b/command/remote.go index 52523a606..727e82480 100644 --- a/command/remote.go +++ b/command/remote.go @@ -48,6 +48,13 @@ func (c *RemoteCommand) Run(args []string) int { return 1 } + // Show help if given no inputs + if !c.conf.disableRemote && c.remoteConf.Type == "atlas" && + name == "" && accessToken == "" { + cmdFlags.Usage() + return 1 + } + // Populate the various configurations c.remoteConf.Config = map[string]string{ "address": address,