diff --git a/Tools/ardupilotwaf/ardupilotwaf.py b/Tools/ardupilotwaf/ardupilotwaf.py index 8579f451ec..b5dcd1e272 100644 --- a/Tools/ardupilotwaf/ardupilotwaf.py +++ b/Tools/ardupilotwaf/ardupilotwaf.py @@ -366,25 +366,29 @@ def _select_programs_from_group(bld): def options(opt): g = opt.ap_groups['build'] + g.add_option('--program-group', action='append', default=[], - help='Select all programs that go in / for the ' + - 'build. Example: `waf --program-group examples` builds all ' + - 'examples. The special group "all" selects all programs.', - ) + help=''' +Select all programs that go in / for the build. Example: `waf +--program-group examples` builds all examples. The special group "all" selects +all programs. +''') g.add_option('--upload', action='store_true', - help='Upload applicable targets to a connected device. Not all ' + - 'platforms may support this. Example: `waf copter --upload` ' + - 'means "build arducopter and upload it to my board".', - ) + help=''' +Upload applicable targets to a connected device. Not all platforms may support +this. Example: `waf copter --upload` means "build arducopter and upload it to +my board". +''') g = opt.ap_groups['check'] + g.add_option('--check-verbose', - action='store_true', - help='Output all test programs') + action='store_true', + help='Output all test programs.') def build(bld): diff --git a/wscript b/wscript index c51a1d1be8..bb19d1e073 100644 --- a/wscript +++ b/wscript @@ -52,29 +52,32 @@ def options(opt): opt.load('ardupilotwaf') g = opt.ap_groups['configure'] + 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) + action='store', + choices=boards_names, + default='sitl', + help='Target board to build, choices are %s.' % boards_names) g.add_option('--no-submodule-update', - dest='submodule_update', - action='store_false', - default=True, - help='Don\'t update git submodules. Useful for building ' + - 'with submodules at specific revisions.') + dest='submodule_update', + action='store_false', + default=True, + help=''' +Don't update git submodules. Useful for building with submodules at specific +revisions. +''') g.add_option('--enable-benchmarks', - action='store_true', - default=False, - help='Enable benchmarks') + action='store_true', + default=False, + help='Enable benchmarks.') g.add_option('--debug', - action='store_true', - default=False, - help='Configure as debug variant') + action='store_true', + default=False, + help='Configure as debug variant.') def configure(cfg): cfg.env.BOARD = cfg.options.board