Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Add --version CLI option (awslabs#280)
Browse files Browse the repository at this point in the history
* Add --version CLI option

* updated DC version

* undone the version update in file .version

Co-authored-by: marco morais <[email protected]>
# Conflicts:
#	source/config/Config.cpp
  • Loading branch information
HarshGandhi-AWS authored and joenghoyin committed Aug 29, 2023
1 parent dd483a0 commit b908727
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.6.0-31d162e*v1.6*1*6*0*0*31d162e
v1.6.0-31d162e*v1.6*1*6*0*0*31d162e
15 changes: 13 additions & 2 deletions source/config/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2066,6 +2066,7 @@ void Config::PrintHelpMessage()
"%s [true|false]:\t\t\t\t\t\tEnables/Disables Pub/Sub Sample feature\n"
"%s [true|false]:\t\t\t\t\tEnables/Disables Sample Shadow feature\n"
"%s [true|false]:\t\t\t\t\tEnables/Disables Config Shadow feature\n"
"%s [true|false]:\t\t\t\t\t\tEnables/Disables Secure Element Configuration\n"
"%s <endpoint-value>:\t\t\t\t\t\tUse Specified Endpoint\n"
"%s <Cert-Location>:\t\t\t\t\t\t\tUse Specified Cert file\n"
"%s <Key-Location>:\t\t\t\t\t\t\tUse Specified Key file\n"
Expand Down Expand Up @@ -2093,7 +2094,12 @@ void Config::PrintHelpMessage()
"%s <shadow-name>:\t\t\t\t\t\tThe name of shadow SampleShadow feature will create or update\n"
"%s <shadow-input-file>:\t\t\t\tThe file the Sample Shadow feature will read from when updating shadow data\n"
"%s <shadow-output-file>:\t\t\t\tThe file the Sample Shadow feature will write the latest shadow document "
"to\n";
"to\n"
"%s <pkcs11-lib-path>:\t\t\t\t\tThe file path to PKCS#11 library\n"
"%s <secure-element-pin>:\t\t\t\t\tThe user PIN for logging into PKCS#11 token.\n"
"%s <secure-element-key-label>:\t\t\t\t\tThe Label of private key on the PKCS#11 token (optional). \n"
"%s <secure-element-slot-id>:\t\t\t\t\tThe Slot ID containing PKCS#11 token to use (optional).\n"
"%s <secure-element-token-label>:\t\t\t\t\tThe Label of the PKCS#11 token to use (optional).\n";

cout << FormatMessage(
helpMessageTemplate,
Expand Down Expand Up @@ -2134,7 +2140,12 @@ void Config::PrintHelpMessage()
PlainConfig::PubSub::CLI_PUB_SUB_SUBSCRIBE_FILE,
PlainConfig::SampleShadow::CLI_SAMPLE_SHADOW_NAME,
PlainConfig::SampleShadow::CLI_SAMPLE_SHADOW_INPUT_FILE,
PlainConfig::SampleShadow::CLI_SAMPLE_SHADOW_OUTPUT_FILE);
PlainConfig::SampleShadow::CLI_SAMPLE_SHADOW_OUTPUT_FILE,
PlainConfig::SecureElement::CLI_PKCS11_LIB,
PlainConfig::SecureElement::CLI_SECURE_ELEMENT_PIN,
PlainConfig::SecureElement::CLI_SECURE_ELEMENT_KEY_LABEL,
PlainConfig::SecureElement::CLI_SECURE_ELEMENT_SLOT_ID,
PlainConfig::SecureElement::CLI_SECURE_ELEMENT_TOKEN_LABEL);
}

void Config::PrintVersion()
Expand Down

0 comments on commit b908727

Please sign in to comment.