command/remote: Improve UI output for remote

This commit is contained in:
Armon Dadgar 2014-12-05 15:18:53 -08:00 committed by Mitchell Hashimoto
parent cdc89f3589
commit 07e5f3ff41
1 changed files with 7 additions and 0 deletions

View File

@ -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,