mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 10:17:45 +08:00
Tools: split by | or space to get all commands
This is required in the case where there are 3 commands on one line.
This commit is contained in:
@@ -442,7 +442,7 @@ class SourceParser(object):
|
|||||||
re.findall(r"\bstrcmp\b.*\bverb\b.*\"(.+)\"", contents)
|
re.findall(r"\bstrcmp\b.*\bverb\b.*\"(.+)\"", contents)
|
||||||
|
|
||||||
doc_commands = module_doc.all_commands() + \
|
doc_commands = module_doc.all_commands() + \
|
||||||
[x for value in module_doc.all_values() for x in value.split('|')]
|
[x for value in module_doc.all_values() for x in value.replace(' ', '|').split('|')]
|
||||||
|
|
||||||
for command in commands:
|
for command in commands:
|
||||||
if len(command) == 2 and command[0] == '-':
|
if len(command) == 2 and command[0] == '-':
|
||||||
|
|||||||
Reference in New Issue
Block a user