mirror of https://gerrit.osmocom.org/libosmocore
b55f4d2df2
Since very recently we sensibly handle commands like cmd ([one]|[two]|[three]) as optional multi-choice arguments. In addition, support the more obvious syntax of cmd [(one|two|three)] Internally, the tokens are mangled to [one] [two] and [three], which is how the rest of the code detects optional args, and makes sense in terms of UI: > cmd ? [one] [two] [three] (i.e. optional arguments are always shown in braces in '?' listings) Before this patch, commands defined with a syntax like [(one|two)], would lead to an assertion (shows as "multiple") during program startup. Change-Id: I952b3c00f97e2447f2308b0ec6f5f1714692b5b2 |
||
---|---|---|
.. | ||
fail_not_de-indented.cfg | ||
fail_tabs_and_spaces.cfg | ||
fail_too_much_indent.cfg | ||
ok.cfg | ||
ok_empty_parent.cfg | ||
ok_ignore_blank.cfg | ||
ok_ignore_comment.cfg | ||
ok_indented_root.cfg | ||
ok_more_spaces.cfg | ||
ok_tabs.cfg | ||
ok_tabs_and_spaces.cfg | ||
vty_test.c | ||
vty_test.ok | ||
vty_transcript_test.c | ||
vty_transcript_test.vty |