Skip to content

Commit 151505c

Browse files
committed
improve option names and description
1 parent 21cb81e commit 151505c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tools/device_management.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(self, *args, **kwargs):
5353
).format(self.parser.prog)
5454
subparserActionLength = len(self.parser._subparsers._actions)
5555
initParser = self.parser._subparsers._actions[subparserActionLength-1].choices['init']
56-
initParser.add_argument('--disable-cert', help='Disable writing the developer certificate to mbed_cloud_dev_credentials.c')
56+
initParser.add_argument('--no-developer-cert', help='Do not download the developer certificate')
5757

5858
def _addCreateArgs(self, parser, exclusions=[]):
5959
if 'payload' not in exclusions:
@@ -134,9 +134,8 @@ def inner(options):
134134
"mbed-cli-auto {}".format(api_key.name),
135135
description="cetificate auto-generated by Mbed CLI"
136136
)
137-
if getattr(options, 'disable_cert'):
138-
LOG.warning("Developer certificate %s not written to "
139-
"mbed_cloud_dev_credentials.c", dev_cert_info.name)
137+
if getattr(options, 'no_developer_cert'):
138+
LOG.info("Skipping download of developer certificate")
140139
else:
141140
LOG.info("Writing developer certificate %s into c file "
142141
"mbed_cloud_dev_credentials.c", dev_cert_info.name)

0 commit comments

Comments
 (0)