summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-06-17 20:30:52 -0500
committerJohn Estabrook <jestabro@vyos.io>2022-06-17 20:30:52 -0500
commitdbf73551a7f770f763d6286f5080c37cdb15f20c (patch)
tree485894fce8336d0468486d611fde6e80ebe6cada /.gitignore
parent43e9a47879749d2035c39a08ec422aceac49842e (diff)
downloadvyos-utils-dbf73551a7f770f763d6286f5080c37cdb15f20c.tar.gz
vyos-utils-dbf73551a7f770f763d6286f5080c37cdb15f20c.zip
numeric: T4467: add support for relative values: +/-N
Add option '--relative' to check that value is of the form '+/-N' for some numeric N (e.g. +10' or '-30'), interpreted as a relative increment or decrement, rather than a signed integer/float. This may be combined with any other option, which will be applied to the value stripped of the leading modifier. Testing this extension revealed that negative values are being interpreted as options, whether quoted or not; to address that, an Arg.Rest keyword '--' is introduced, which will need to be passed along with the option in interface definitions using the above. For example: <validator name="numeric" argument="--relative --"/>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions