From 853f92118a117bed6224bb7a93f320bab5042eba Mon Sep 17 00:00:00 2001 From: Oluwatosin Adewale Date: Thu, 29 Nov 2018 16:34:15 -0800 Subject: [PATCH 1/2] Updated location help text. --- src/azure-cli-core/azure/cli/core/commands/parameters.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/azure-cli-core/azure/cli/core/commands/parameters.py b/src/azure-cli-core/azure/cli/core/commands/parameters.py index 11513a29e7a..fba8b09e44e 100644 --- a/src/azure-cli-core/azure/cli/core/commands/parameters.py +++ b/src/azure-cli-core/azure/cli/core/commands/parameters.py @@ -249,7 +249,8 @@ def get_location_type(cli_ctx): options_list=('--location', '-l'), completer=get_location_completion_list, type=get_location_name_type(cli_ctx), - help="Location. You can configure the default location using `az configure --defaults location=`", + help="Location. Run `az account list-locations --output table` to get a list of available location names. " + "You can configure the default location using `az configure --defaults location=`.", metavar='LOCATION', configured_default='location') return location_type From 45bb23d2fec77477c56d52ab6561df2bca577ee9 Mon Sep 17 00:00:00 2001 From: Travis Prescott Date: Fri, 30 Nov 2018 12:10:17 -0800 Subject: [PATCH 2/2] Update parameters.py --- src/azure-cli-core/azure/cli/core/commands/parameters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli-core/azure/cli/core/commands/parameters.py b/src/azure-cli-core/azure/cli/core/commands/parameters.py index fba8b09e44e..4430698db05 100644 --- a/src/azure-cli-core/azure/cli/core/commands/parameters.py +++ b/src/azure-cli-core/azure/cli/core/commands/parameters.py @@ -249,7 +249,7 @@ def get_location_type(cli_ctx): options_list=('--location', '-l'), completer=get_location_completion_list, type=get_location_name_type(cli_ctx), - help="Location. Run `az account list-locations --output table` to get a list of available location names. " + help="Location. Values from: `az account list-locations`. " "You can configure the default location using `az configure --defaults location=`.", metavar='LOCATION', configured_default='location')