mirror of https://github.com/ARMmbed/mbed-os.git
improve option names and description
parent
21cb81e252
commit
151505c18e
|
@ -53,7 +53,7 @@ class MbedExtendedArgs(MainArgumentParser):
|
||||||
).format(self.parser.prog)
|
).format(self.parser.prog)
|
||||||
subparserActionLength = len(self.parser._subparsers._actions)
|
subparserActionLength = len(self.parser._subparsers._actions)
|
||||||
initParser = self.parser._subparsers._actions[subparserActionLength-1].choices['init']
|
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=[]):
|
def _addCreateArgs(self, parser, exclusions=[]):
|
||||||
if 'payload' not in exclusions:
|
if 'payload' not in exclusions:
|
||||||
|
@ -134,9 +134,8 @@ def wrap_init(func):
|
||||||
"mbed-cli-auto {}".format(api_key.name),
|
"mbed-cli-auto {}".format(api_key.name),
|
||||||
description="cetificate auto-generated by Mbed CLI"
|
description="cetificate auto-generated by Mbed CLI"
|
||||||
)
|
)
|
||||||
if getattr(options, 'disable_cert'):
|
if getattr(options, 'no_developer_cert'):
|
||||||
LOG.warning("Developer certificate %s not written to "
|
LOG.info("Skipping download of developer certificate")
|
||||||
"mbed_cloud_dev_credentials.c", dev_cert_info.name)
|
|
||||||
else:
|
else:
|
||||||
LOG.info("Writing developer certificate %s into c file "
|
LOG.info("Writing developer certificate %s into c file "
|
||||||
"mbed_cloud_dev_credentials.c", dev_cert_info.name)
|
"mbed_cloud_dev_credentials.c", dev_cert_info.name)
|
||||||
|
|
Loading…
Reference in New Issue