aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-10-05 13:29:55 -0500
committerRob Landley <rob@landley.net>2016-10-05 13:29:55 -0500
commitcefc0a2183f57173dab47cf89fcb37e7a827f258 (patch)
tree746c869f8df2cf7b6db2a3066c932ab7ffc9984b
parent346c33c8b22f6e6780d0a7132982a81512172a58 (diff)
downloadtoybox-cefc0a2183f57173dab47cf89fcb37e7a827f258.tar.gz
Explain some generic argument parsing features in toybox --help.
-rw-r--r--Config.in13
1 files changed, 11 insertions, 2 deletions
diff --git a/Config.in b/Config.in
index 07c6d70c..8fb1f139 100644
--- a/Config.in
+++ b/Config.in
@@ -13,17 +13,26 @@ config TOYBOX
bool
default y
help
- usage: toybox [--long | --version | [command] [arguments...]]
+ usage: toybox [--long | --help | --version | [command] [arguments...]]
With no arguments, shows available commands. First argument is
name of a command to run, followed by any arguments to that command.
--long Show path to each command
- --version Show toybox version
To install command symlinks, try:
for i in $(/bin/toybox --long); do ln -s /bin/toybox $i; done
+ Most toybox commands also understand the following arguments:
+
+ --help Show command help (only)
+ --version Show toybox version (only)
+
+ The filename "-" means stdin, "--" stops argument parsing,
+ and numerical arguments accept a single letter suffix for
+ kilo, mega, giga, tera, peta, and exabytes, plus an additional
+ "d" to indicate decimal 1000's instead of 1024.
+
config TOYBOX_SUID
bool "SUID support"
default y