Skip to content

Commit 2dd0fb4

Browse files
Adjust command input for backwards compatibility (#578)
1 parent 02ffaa0 commit 2dd0fb4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

samples/utils/CommandLineUtils.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ namespace Utils
6565
static const char *m_cmd_proxy_user_name = "proxy_user_name";
6666
static const char *m_cmd_proxy_password = "proxy_password";
6767
static const char *m_cmd_shadow_property = "shadow_property";
68+
static const char *m_cmd_region = "region";
6869

6970
CommandLineUtils::CommandLineUtils()
7071
{
@@ -431,7 +432,7 @@ namespace Utils
431432
cmdUtils.AddCommonProxyCommands();
432433
cmdUtils.AddCommonTopicMessageCommands();
433434
cmdUtils.RemoveCommand(m_cmd_endpoint);
434-
cmdUtils.RegisterCommand(m_cmd_signing_region, "<str>", "The region for your Greengrass groups.");
435+
cmdUtils.RegisterCommand(m_cmd_region, "<str>", "The region for your Greengrass groups.");
435436
cmdUtils.RegisterCommand(m_cmd_thing_name, "<str>", "The name of your IOT thing");
436437
cmdUtils.RegisterCommand(
437438
m_cmd_mode, "<str>", "Mode options: 'both', 'publish', or 'subscribe' (optional, default='both').");
@@ -448,7 +449,7 @@ namespace Utils
448449
{
449450
returnData.input_ca = cmdUtils.GetCommand(m_cmd_ca_file);
450451
}
451-
returnData.input_signingRegion = cmdUtils.GetCommandRequired(m_cmd_signing_region);
452+
returnData.input_signingRegion = cmdUtils.GetCommandRequired(m_cmd_region);
452453
s_populateTopic(&cmdUtils, &returnData);
453454
returnData.input_message = cmdUtils.GetCommandOrDefault(m_cmd_message, "");
454455
returnData.input_mode = cmdUtils.GetCommandOrDefault(m_cmd_mode, "both");

0 commit comments

Comments
 (0)