ardupilot/Tools/ardupilotwaf
Gustavo Jose de Sousa afcabda21c waf: use better style for add_option() calls
Setting the "help" keyword argument may not fit in one line sometimes. This
patch adds the following convention to calls to add_option() in order to
address that issue in a better way:

    1) The "help" keyword must always be the last argument to be passed.

    2) If the help string is a literal string or a literal string with some
    operation (e.g. "%" operator) and setting the "help" keyword in the code
    doesn't fit a line (considering the limit of characters in a line), then
    the help string must be a triple-quoted string. That has the advantage of
    not having to have several "+" operations for long help strings. In that
    case, the help message must start on the next line and the closing
    triple-quotes must be on a separate line together with the closing
    parenthesis.

The requirement (1) makes it easier to make the style exception in (2)
acceptable.
2016-05-25 17:47:00 -03:00
..
px4/cmake/configs waf: px4: use lib/rc for v4 2016-05-18 15:36:48 -03:00
__init__.py waf: add waf support 2015-12-03 07:54:30 +11:00
ardupilotwaf.py waf: use better style for add_option() calls 2016-05-25 17:47:00 -03:00
boards.py waf: boards: bind get_board() to configure and build contexts 2016-05-25 17:47:00 -03:00
cmake.py waf: cmake: reconfigure when configuration data change 2016-05-25 11:51:40 -03:00
cxx_checks.py waf: check for libiio for all linux boards 2016-05-23 12:06:42 -03:00
gbenchmark.py waf: cmake: use CMakeConfig class instead of taskgen 2016-05-25 11:51:40 -03:00
git_submodule.py waf: define git versions in a generated ap_version.h header 2016-05-06 13:11:28 -03:00
gtest.py waf: boards: bind get_board() to configure and build contexts 2016-05-25 17:47:00 -03:00
mavgen.py waf: update for MAVLink2 build 2016-05-21 15:25:17 +10:00
px4.py waf: px4: reconfigure PX4Firmware for each program 2016-05-25 11:51:40 -03:00
static_linking.py waf: add static_linking tool 2016-01-11 16:31:59 -02:00
toolchain.py waf: toolchain: add find_toolchain_program() 2016-05-25 17:47:00 -03:00