mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-03 20:23:58 -04:00
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. |
||
---|---|---|
.. | ||
APM2_2560_bootloader | ||
APM_radio_test | ||
ArduPilotMega_demo | ||
ArdupilotMegaPlanner | ||
ardupilotwaf | ||
ArduPPM | ||
autotest | ||
CHDK-Scripts | ||
CodeStyle | ||
CPUInfo | ||
Failsafe | ||
FlightGear | ||
Frame_params | ||
GIT_Test | ||
gittools | ||
Hello | ||
Linux_HAL_Essentials | ||
LogAnalyzer | ||
mavproxy_modules | ||
PPM_decoding | ||
Replay | ||
scripts | ||
SerialProxy | ||
vagrant | ||
Xplane | ||
PrintVersion.py |