svf: make command 'svf' syntax consistent
commit5f6ceebbba3a34fc4bfcf56e963739dd2e9cf056
authorAntonio Borneo <borneo.antonio@gmail.com>
Fri, 10 Mar 2023 10:41:54 +0000 (10 11:41 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 25 Mar 2023 18:09:06 +0000 (25 18:09 +0000)
treef3d755bbcb469478e63c7f26e885750ca1488d0d
parentf8631c3650c0e3a3c3e16726f1ca3748d163cc69
svf: make command 'svf' syntax consistent

The command 'svf' is the only command in OpenOCD that accepts
options in both forms 'option' and '-option'.

Deprecate the option format without the leading '-'.
Update the documentation and fix the on-line help.
While there:
- switch to use the new nvp.h helper;
- return ERROR_COMMAND_ARGUMENT_INVALID on invalid command args;
- fix some minor coding style rule.

Change-Id: I5b944403d92a3fa1e12d5faafc1d2a139bc16a7d
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7534
Tested-by: jenkins
doc/openocd.texi
src/svf/svf.c