From 8be2db4d014d5c2888f39a8e12833f0c7f80dd0f Mon Sep 17 00:00:00 2001 From: Gustavo Jose de Sousa Date: Wed, 27 Jan 2016 15:45:46 +0000 Subject: [PATCH] waf: ardupilotwaf: add parameter doc to build_shortcut() That makes it possible to display meaningful information on the help message. --- Tools/ardupilotwaf/ardupilotwaf.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tools/ardupilotwaf/ardupilotwaf.py b/Tools/ardupilotwaf/ardupilotwaf.py index 4da7e92c42..611beca4d9 100644 --- a/Tools/ardupilotwaf/ardupilotwaf.py +++ b/Tools/ardupilotwaf/ardupilotwaf.py @@ -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