diff options
author | Erik Andersen | 2000-04-13 18:49:43 +0000 |
---|---|---|
committer | Erik Andersen | 2000-04-13 18:49:43 +0000 |
commit | 9cf3bfa7c1bf3ad959c61711c9a5ac1969149300 (patch) | |
tree | 61d03a8d473f2d253c80f5bb3acc13d488351250 /echo.c | |
parent | b4f8606c05f8a256b515633e48df954ead1260ef (diff) | |
download | busybox-9cf3bfa7c1bf3ad959c61711c9a5ac1969149300.zip busybox-9cf3bfa7c1bf3ad959c61711c9a5ac1969149300.tar.gz |
More doc updates for BusyBox, with fixes to apps for bugs revealed
while trying to write docs . :-)
-Erik
Diffstat (limited to 'echo.c')
-rw-r--r-- | echo.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -25,6 +25,14 @@ #include "internal.h" #include <stdio.h> +static const char uname_usage[] = + "echo [-neE] [ARG ...]\n\n" + "Prints the specified ARGs to stdout\n\n" + "Options:\n" + "\t-n\tsuppress trailing newline\n" + "\t-e\tinterpret backslash-escaped characters (i.e. \\t=tab etc)\n" + "\t-E\tdisable interpretation of backslash-escaped characters\n"; + extern int echo_main(int argc, char** argv) { @@ -45,6 +53,9 @@ echo_main(int argc, char** argv) } else if (strcmp(p, "-E")==0) { eflag = 0; } + else if (strncmp(p, "--", 2)==0) { + usage( uname_usage); + } else break; ap++; } |