From fd88e394085ea9cb65b32910c6725ce2e1d45792 Mon Sep 17 00:00:00 2001 From: Gustavo Jose de Sousa Date: Wed, 17 Feb 2016 12:35:29 +0000 Subject: [PATCH] waf: make all options belong to an option group That makes it easier for the user to distinguish between a general waf option and project specific option. --- wscript | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wscript b/wscript index e0e0ff737f..3863d84682 100644 --- a/wscript +++ b/wscript @@ -40,16 +40,17 @@ def init(ctx): def options(opt): opt.load('ardupilotwaf') - boards_names = boards.get_boards_names() - opt.load('compiler_cxx compiler_c waf_unit_test python') - opt.add_option('--board', + + g = opt.add_option_group('Ardupilot configure options') + boards_names = boards.get_boards_names() + g.add_option('--board', action='store', choices=boards_names, default='sitl', help='Target board to build, choices are %s' % boards_names) - g = opt.add_option_group('Check options') + g = opt.add_option_group('Ardupilot check options') g.add_option('--check-verbose', action='store_true', help='Output all test programs')