Skip to content

Commit 4f1c1d9

Browse files
committed
mbed dm: Remove references to internal script from help
### Description Now that we are delegating the help text to `device_managment.py`, it should print out help as if it's invoked with `mbed device-management`. This PR changes the argument parser and the help text to do just that. ### Pull request type [x] Fix [ ] Refactor [ ] Target update [ ] Functionality change [ ] Breaking change
1 parent 920db63 commit 4f1c1d9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tools/device_management.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@
4444

4545

4646
class MbedExtendedArgs(MainArgumentParser):
47+
48+
def __init__(self, *args, **kwargs):
49+
MainArgumentParser.__init__(self, *args, **kwargs)
50+
self.parser.prog = "mbed device-management"
51+
self.parser.description = (
52+
"Create or transform a manifest. "
53+
"Use {} [command] -h for help on each command."
54+
).format(self.parser.prog)
55+
4756
def _addCreateArgs(self, parser, exclusions=[]):
4857
if 'payload' not in exclusions:
4958
parser.add_argument(

0 commit comments

Comments
 (0)