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.
This commit is contained in:
Gustavo Jose de Sousa 2016-02-17 12:35:29 +00:00 committed by Lucas De Marchi
parent 1d528d552f
commit fd88e39408
1 changed files with 5 additions and 4 deletions

View File

@ -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')