aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-03-28 17:48:02 -0500
committerRob Landley <rob@landley.net>2014-03-28 17:48:02 -0500
commit36aa7d7382f64695ef003e5616890188b9f1f61b (patch)
tree5ca460327629086457f333aa5364c11dbf6ff0e1 /main.c
parente9a41fc5ae51ccf7bd5677773bfe72d01f06b3cd (diff)
downloadtoybox-36aa7d7382f64695ef003e5616890188b9f1f61b.tar.gz
Add help -a (to show all commands) and -h (to produce HTML output).
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 8fe8e058..19600fcc 100644
--- a/main.c
+++ b/main.c
@@ -162,6 +162,8 @@ int main(int argc, char *argv[])
{
if (CFG_TOYBOX_I18N) setlocale(LC_ALL, "");
+ toys.toycount = ARRAY_LEN(toy_list);
+
if (CFG_TOYBOX) {
// Trim path off of command name
*argv = basename(*argv);