More documentation updates, and minor fixes to make things sync
[oweals/busybox.git] / test.c
diff --git a/test.c b/test.c
index 85d06a83a7f8f0ec552cdd79bb2fde4757653bd8..0ed777194463130fb9e8cc92ec40513aaa2ef661 100644 (file)
--- a/test.c
+++ b/test.c
@@ -1,6 +1,6 @@
 /* vi: set sw=4 ts=4: */
 /*
- * echo implementation for busybox
+ * test implementation for busybox
  *
  * Copyright (c) by a whole pile of folks: 
  *
@@ -185,6 +185,12 @@ test_main(int argc, char** argv)
                        fatalError("missing ]");
                argv[argc] = NULL;
        }
+       if (strcmp(argv[1], "--help") == 0) {
+               usage("test EXPRESSION\n"
+                         "or   [ EXPRESSION ]\n\n"
+                               "Checks file types and compares values returning an exit\n"
+                               "code determined by the value of EXPRESSION.\n");
+       }
 
        /* Implement special cases from POSIX.2, section 4.62.4 */
        switch (argc) {