summaryrefslogtreecommitdiffstats
path: root/commands/Kconfig
diff options
context:
space:
mode:
authorHolger Schurig <holgerschurig@gmail.com>2014-05-13 10:28:59 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-05-14 10:03:49 +0200
commit2071940c76e872a67f9a4de6ba6d47bb570c876c (patch)
treec2b77eca6a821fea2d5b50461467df0248a38bc5 /commands/Kconfig
parentfc0f7eec8249227195b918d5c6e0b30d97d097bb (diff)
downloadbarebox-2071940c76e872a67f9a4de6ba6d47bb570c876c.tar.gz
barebox-2071940c76e872a67f9a4de6ba6d47bb570c876c.tar.xz
commands: move CONFIG_LONGHELP to commands/Kconfig
Signed-off-by: Holger Schurig <holgerschurig@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/Kconfig')
-rw-r--r--commands/Kconfig37
1 files changed, 37 insertions, 0 deletions
diff --git a/commands/Kconfig b/commands/Kconfig
index a4e482f495..02f0931f75 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -97,6 +97,43 @@ config CMD_HELP
-a output help on all commands
-v verbose
+config LONGHELP
+ bool
+ depends on !SHELL_NONE && CMD_HELP
+ prompt "Long help texts"
+ help
+ This make the "help" command of barebox spit out much more information,
+ but (obviously) also makes barebox bigger.
+
+ Example with CONFIG_LONGHELP:
+
+ -----------------------------
+ barebox:/ help ls
+
+ ls - list a file or directory
+
+ Usage: ls [-lCR] [FILEDIR...]
+
+ List information about the specified files or directories.
+
+ Options:
+ -l long format
+ -C column format (opposite of long format)
+ -R list subdirectories recursively
+ -----------------------------
+
+ And now without CONFIG_LONGHELP:
+
+ -----------------------------
+ barebox:/ help ls
+
+ ls - list a file or directory
+
+ Usage: ls [-lCR] [FILEDIR...]
+ -----------------------------
+
+ With my specific .config, the binary size increased from 461500 to 481980.
+
config CMD_IOMEM
tristate
prompt "iomem and ioport"