| .. SPDX-License-Identifier: GPL-2.0+ |
| The cli command permits getting and changing the current parser at runtime. |
| It shows the current value of the parser used by the CLI. |
| It permits setting the value of the parser used by the CLI. |
| Possible values are old and modern. |
| Note that, to use a specific parser its code should have been compiled, that |
| is to say you need to enable the corresponding CONFIG_HUSH*. |
| Otherwise, an error message is printed. |
| Change the current parser:: |
| Trying to set the current parser to an unknown value:: |
| Bad value for parser name: foo |
| cli get - print current cli |
| set - set the current cli, possible values are: old, modern |
| Trying to set the current parser to a correct value but its code was not |
| Want to set current parser to old, but its code was not compiled! |
| The return value $? indicates whether the command succeeded. |