diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2019-01-31 08:13:31 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2019-02-04 16:43:57 +0000 |
commit | b55f4d2df21b966c3953264d8961f259814f4650 (patch) | |
tree | 6347e1da541fc51cfedf2c896b5ad751f1fcbaec /src/gsm/rxlev_stat.c | |
parent | c197809deb6add8b69a5460a91436b80be218d31 (diff) |
vty: enable optional-multi-choice syntax: [(one|two)]
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
Diffstat (limited to 'src/gsm/rxlev_stat.c')
0 files changed, 0 insertions, 0 deletions