summaryrefslogtreecommitdiff
path: root/doc/usage
diff options
context:
space:
mode:
authorFrancis Laniel <francis.laniel@amarulasolutions.com>2023-12-22 22:02:32 +0100
committerTom Rini <trini@konsulko.com>2023-12-28 12:02:56 -0500
commit9a068377313c1feabb55072d2d1157999cf9d15e (patch)
tree19502dfd7079f0c040ec2cb0a9efeedd3ee60cec /doc/usage
parent6bb39f5d16e8531eeca8237454cc528aa54c9e81 (diff)
downloadu-boot-9a068377313c1feabb55072d2d1157999cf9d15e.tar.gz
u-boot-9a068377313c1feabb55072d2d1157999cf9d15e.tar.bz2
u-boot-9a068377313c1feabb55072d2d1157999cf9d15e.zip
cli: Enables using modern hush parser as command line parser
If one defines HUSH_MODERN_PARSER, it is then possible to use modern parser with: => cli get old => cli set modern => cli get modern Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Francis Laniel <francis.laniel@amarulasolutions.com>
Diffstat (limited to 'doc/usage')
-rw-r--r--doc/usage/cmd/cli.rst19
1 files changed, 17 insertions, 2 deletions
diff --git a/doc/usage/cmd/cli.rst b/doc/usage/cmd/cli.rst
index 89ece3203d..a0cf5958fb 100644
--- a/doc/usage/cmd/cli.rst
+++ b/doc/usage/cmd/cli.rst
@@ -26,7 +26,7 @@ cli set
It permits setting the value of the parser used by the CLI.
-Possible values are old and 2021.
+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.
@@ -41,7 +41,14 @@ Get the current parser::
Change the current parser::
+ => cli get
+ old
+ => cli set modern
+ => cli get
+ modern
=> cli set old
+ => cli get
+ old
Trying to set the current parser to an unknown value::
@@ -51,7 +58,15 @@ Trying to set the current parser to an unknown value::
Usage:
cli get - print current cli
- set - set the current cli, possible value is: old
+ 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
+compiled::
+
+ => cli get
+ modern
+ => cli set old
+ Want to set current parser to old, but its code was not compiled!
Return value
------------