`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
pull/8104/head
Jimmy Brisson 2018-09-12 11:05:42 -05:00
parent 920db63453
commit 4f1c1d90e5
1 changed files with 9 additions and 0 deletions

View File

@ -44,6 +44,15 @@ from tools.options import extract_mcus
class MbedExtendedArgs(MainArgumentParser):
def __init__(self, *args, **kwargs):
MainArgumentParser.__init__(self, *args, **kwargs)
self.parser.prog = "mbed device-management"
self.parser.description = (
"Create or transform a manifest. "
"Use {} [command] -h for help on each command."
).format(self.parser.prog)
def _addCreateArgs(self, parser, exclusions=[]):
if 'payload' not in exclusions:
parser.add_argument(