aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
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 85d06a83a..0ed777194 100644
--- a/test.c
+++ b/test.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * echo implementation for busybox 3 * test implementation for busybox
4 * 4 *
5 * Copyright (c) by a whole pile of folks: 5 * Copyright (c) by a whole pile of folks:
6 * 6 *
@@ -185,6 +185,12 @@ test_main(int argc, char** argv)
185 fatalError("missing ]"); 185 fatalError("missing ]");
186 argv[argc] = NULL; 186 argv[argc] = NULL;
187 } 187 }
188 if (strcmp(argv[1], "--help") == 0) {
189 usage("test EXPRESSION\n"
190 "or [ EXPRESSION ]\n\n"
191 "Checks file types and compares values returning an exit\n"
192 "code determined by the value of EXPRESSION.\n");
193 }
188 194
189 /* Implement special cases from POSIX.2, section 4.62.4 */ 195 /* Implement special cases from POSIX.2, section 4.62.4 */
190 switch (argc) { 196 switch (argc) {