mirror of https://github.com/ArduPilot/ardupilot
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:
parent
1d528d552f
commit
fd88e39408
9
wscript
9
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')
|
||||
|
|
Loading…
Reference in New Issue