MCPcopy Create free account
hub / github.com/PX4/PX4-Autopilot / PRINT_MODULE_USAGE_PARAM_FLAG

Function PRINT_MODULE_USAGE_PARAM_FLAG

platforms/common/module.cpp:184–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184void PRINT_MODULE_USAGE_PARAM_FLAG(char option_char, const char *description, bool is_optional)
185{
186#ifndef CONSTRAINED_FLASH_NO_HELP
187
188 if (is_optional) {
189 PX4_INFO_RAW(" [-%c] %s\n", option_char, description);
190
191 } else {
192 PX4_INFO_RAW(" -%c %s\n", option_char, description);
193 }
194
195#endif
196}
197
198void PRINT_MODULE_USAGE_PARAM_STRING(char option_char, const char *default_val, const char *values,
199 const char *description, bool is_optional)

Callers 15

print_usageMethod · 0.85
print_usageFunction · 0.85
usageFunction · 0.85
usageFunction · 0.85
print_usageFunction · 0.85
usageFunction · 0.85
usageFunction · 0.85
print_usageMethod · 0.85
print_usageMethod · 0.85
print_usageMethod · 0.85
print_usageMethod · 0.85
print_usageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected