improve option names and description

pull/9804/head
Aashish chaddha 2019-02-22 10:17:24 -06:00
parent 21cb81e252
commit 151505c18e
1 changed files with 3 additions and 4 deletions

View File

@ -53,7 +53,7 @@ class MbedExtendedArgs(MainArgumentParser):
).format(self.parser.prog)
subparserActionLength = len(self.parser._subparsers._actions)
initParser = self.parser._subparsers._actions[subparserActionLength-1].choices['init']
initParser.add_argument('--disable-cert', help='Disable writing the developer certificate to mbed_cloud_dev_credentials.c')
initParser.add_argument('--no-developer-cert', help='Do not download the developer certificate')
def _addCreateArgs(self, parser, exclusions=[]):
if 'payload' not in exclusions:
@ -134,9 +134,8 @@ def wrap_init(func):
"mbed-cli-auto {}".format(api_key.name),
description="cetificate auto-generated by Mbed CLI"
)
if getattr(options, 'disable_cert'):
LOG.warning("Developer certificate %s not written to "
"mbed_cloud_dev_credentials.c", dev_cert_info.name)
if getattr(options, 'no_developer_cert'):
LOG.info("Skipping download of developer certificate")
else:
LOG.info("Writing developer certificate %s into c file "
"mbed_cloud_dev_credentials.c", dev_cert_info.name)