summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorErik Andersen2000-04-15 16:34:54 +0000
committerErik Andersen2000-04-15 16:34:54 +0000
commit5e1189e187f6a7957dadb8eda2c271c4a0777a23 (patch)
tree140cd30d77342c730afbc1df863bec93c63978a8 /test.c
parent95c1c1e05f290ccbcc2ff863a62bcee5d57bf5c8 (diff)
downloadbusybox-5e1189e187f6a7957dadb8eda2c271c4a0777a23.zip
busybox-5e1189e187f6a7957dadb8eda2c271c4a0777a23.tar.gz
More documentation updates, and minor fixes to make things sync
up with the docs. -Erik
Diffstat (limited to 'test.c')
-rw-r--r--test.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/test.c b/test.c
index 85d06a8..0ed7771 100644
--- 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) {