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:
Gustavo Jose de Sousa 2016-01-27 15:45:46 +00:00 committed by Lucas De Marchi
parent 9d7eaa7913
commit 8be2db4d01
1 changed files with 5 additions and 1 deletions

View File

@ -269,7 +269,10 @@ def _process_build_shortcut(bld):
program_group_list = Utils.to_list(params['program_group_list']) program_group_list = Utils.to_list(params['program_group_list'])
bld.options.program_group.extend(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( _build_shortcuts[name] = dict(
targets=targets, targets=targets,
program_group_list=program_group_list, program_group_list=program_group_list,
@ -277,6 +280,7 @@ def build_shortcut(name, targets=None, program_group_list=[]):
class context_class(BuildContext): class context_class(BuildContext):
cmd = name cmd = name
context_class.__doc__ = doc
def _select_programs_from_group(bld): def _select_programs_from_group(bld):
groups = bld.options.program_group groups = bld.options.program_group