From caa75e403e1c6a671e65fe68c167ba0e9638f51e Mon Sep 17 00:00:00 2001 From: Dustin Specker Date: Wed, 17 Jul 2019 13:12:07 -0500 Subject: [PATCH] fix: improve error message when user passes in only api and url Also change enable to enabled. Before if a user passed in --api and --url TEXT the error message would return a confusing message that the user must pass in url when api is enabled. Now the error message says the user must provide url and token when api is enabled. Change-Id: I3284a7e1f920217dc476abcdd1fc17701c85655e --- armada/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armada/shell.py b/armada/shell.py index 68ee061a..b6df25d3 100644 --- a/armada/shell.py +++ b/armada/shell.py @@ -70,7 +70,7 @@ def main(ctx, debug, api, url, token): if api: if not url or not token: raise click.ClickException( - 'When api option is enable user needs to pass url') + 'When api option is enabled user needs to pass url and token') else: ctx.obj['api'] = api parsed_url = urlparse(url)