mirror of https://github.com/ArduPilot/ardupilot
waf: ardupilotwaf: add parameter doc to build_shortcut()
That makes it possible to display meaningful information on the help message.
This commit is contained in:
parent
9d7eaa7913
commit
8be2db4d01
|
@ -269,7 +269,10 @@ def _process_build_shortcut(bld):
|
|||
program_group_list = Utils.to_list(params['program_group_list'])
|
||||
bld.options.program_group.extend(program_group_list)
|
||||
|
||||
def build_shortcut(name, targets=None, program_group_list=[]):
|
||||
def build_shortcut(name,
|
||||
targets=None,
|
||||
program_group_list=[],
|
||||
doc='build shortcut'):
|
||||
_build_shortcuts[name] = dict(
|
||||
targets=targets,
|
||||
program_group_list=program_group_list,
|
||||
|
@ -277,6 +280,7 @@ def build_shortcut(name, targets=None, program_group_list=[]):
|
|||
|
||||
class context_class(BuildContext):
|
||||
cmd = name
|
||||
context_class.__doc__ = doc
|
||||
|
||||
def _select_programs_from_group(bld):
|
||||
groups = bld.options.program_group
|
||||
|
|
Loading…
Reference in New Issue