summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2021-10-13 11:15:52 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2021-10-13 11:25:42 +0200
commitaaf3d5ba74c5da97ff80b61f30cb8dd225d39096 (patch)
treeb2f6767b5cf374ea7f4cd8abdac8984fa06e7eb1
parent62f1eed1e1916afbff8f9ce3f820626348e8b867 (diff)
downloadbusybox-aaf3d5ba74c5da97ff80b61f30cb8dd225d39096.tar.gz
shell: tweak --help
Even though formally it is -s [ARGS], "sh -s" without ARGS is the same as just "sh". And we are already over 80 chars wide for ash --help, so make it shorter. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--shell/ash.c2
-rw-r--r--shell/hush.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 1982a24b7..827643808 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -14455,7 +14455,7 @@ init(void)
//usage:#define ash_trivial_usage
-//usage: "[-il] [-|+Cabefmnuvx] [-|+o OPT]... [-c 'SCRIPT' [ARG0 ARGS] | FILE [ARGS] | -s [ARGS]]"
+//usage: "[-il] [-|+Cabefmnuvx] [-|+o OPT]... [-c 'SCRIPT' [ARG0 ARGS] | FILE ARGS | -s ARGS]"
//////// comes from ^^^^^^^^^^optletters
//usage:#define ash_full_usage "\n\n"
//usage: "Unix shell interpreter"
diff --git a/shell/hush.c b/shell/hush.c
index 3a17f5bd5..6a27b1634 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -339,7 +339,7 @@
* therefore we don't show them either.
*/
//usage:#define hush_trivial_usage
-//usage: "[-enxl] [-c 'SCRIPT' [ARG0 ARGS] | FILE [ARGS] | -s [ARGS]]"
+//usage: "[-enxl] [-c 'SCRIPT' [ARG0 ARGS] | FILE ARGS | -s ARGS]"
//usage:#define hush_full_usage "\n\n"
//usage: "Unix shell interpreter"