From: Heinrich Schuchardt <xypron.glpk@gmx.de>
Date: Fri, 22 Jan 2021 18:25:53 +0000 (+0100)
Subject: doc: document true command
X-Git-Tag: v2025.01-rc5-pxa1908~2045^2~3
X-Git-Url: http://git.dujemihanovic.xyz/%22http:/kyber.dk/phpMyBuilder/static/%7B%7B%20%24image.RelPermalink%20%7D%7D?a=commitdiff_plain;h=9d4445bc6dd314cc34aaeeac1c03d5bdb6761cca;p=u-boot.git

doc: document true command

Create a man-page for the true command.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---

diff --git a/doc/usage/index.rst b/doc/usage/index.rst
index 1304b59aad..d3abf2d88a 100644
--- a/doc/usage/index.rst
+++ b/doc/usage/index.rst
@@ -24,3 +24,4 @@ Shell commands
    mbr
    pstore
    sbi
+   true
diff --git a/doc/usage/true.rst b/doc/usage/true.rst
new file mode 100644
index 0000000000..f9ef71b2d1
--- /dev/null
+++ b/doc/usage/true.rst
@@ -0,0 +1,28 @@
+true command
+============
+
+Synopsis
+--------
+
+::
+
+    true
+
+Description
+-----------
+
+The true command sets the return value $? to 0 (true).
+
+Example
+-------
+
+::
+
+    => true; echo $?
+    0
+    =>
+
+Configuration
+-------------
+
+The true command is only available if CONFIG_HUSH_PARSER=y.