diff options
author | Rob Landley <rob@landley.net> | 2007-08-29 08:10:01 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2007-08-29 08:10:01 -0500 |
commit | 7ecedea509f9a5484d122c3c430d84954cb7c811 (patch) | |
tree | fdfdb4cf7a179303376b659a8e6ec2e3ac8ac227 /toys/Config.in | |
parent | 6ed92f34c01157e03a9afdc6dc1822875cf0d615 (diff) | |
download | toybox-7ecedea509f9a5484d122c3c430d84954cb7c811.tar.gz |
Add "help" command. (Building help/help.h requires python, but I'll ship
that file with release versions.)
Diffstat (limited to 'toys/Config.in')
-rw-r--r-- | toys/Config.in | 58 |
1 files changed, 57 insertions, 1 deletions
diff --git a/toys/Config.in b/toys/Config.in index 2e9127dc..e6f9636c 100644 --- a/toys/Config.in +++ b/toys/Config.in @@ -1,5 +1,16 @@ menu "Toys" +# Fake config symbol to attach help entry to. + +config TOYBOX + bool + default n + help + usage: toybox [command] [arguments...] + + With no arguments, shows available commands. First argument is + name of a command to run, followed by any arguments to that command. + config BZCAT bool "bzcat" default n @@ -90,6 +101,22 @@ config HELLO help A hello world program. You don't need this. +config HELP + bool "help" + default y + help + usage: help [command] + + Show usage information for toybox commands. + +config HELP_LONG + bool "Verbose help text" + default y + depends on HELP + help + Show more than one line of help information per command. + + config MDEV bool "mdev" default n @@ -216,7 +243,7 @@ config READLINK_F help usage: readlink [-f] - -f Show final location, including normal files and multiple symlinks. + -f Show final location, including normal files and multiple symlinks. config SLEEP bool "sleep" @@ -366,6 +393,35 @@ config TOYSH_BUILTINS Adds the commands exec, fg, bg, help, jobs, pwd, export, source, set, unset, read, alias. +config EXIT + bool + default n + depends on TOYSH + help + usage: exit [status] + + Exit shell. If no return value supplied on command line, use value + of most recent command, or 0 if none. + +config CD + bool + default n + depends on TOYSH + help + usage: cd [path] + + Change current directory. With no arguments, go to $HOME. + +config CD_P + bool # "-P support for cd" + default n + depends on TOYSH + help + usage: cd [-PL] + + -P Physical path: resolve symlinks in path. + -L Cancel previous -P and restore default behavior. + config TRUE bool "true" default y |