+ wrap things in B<> to make pod2man happy
[oweals/busybox.git] / echo.c
diff --git a/echo.c b/echo.c
index 91f17aa0f4b51a9b8302ec6f54e544dfe7f284fb..2405d0ae1dd0c2b9f559a9c19a2de4934e73165e 100644 (file)
--- a/echo.c
+++ b/echo.c
 #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++;
        }