This one should be able to deal with the USAGE macros a little
[oweals/busybox.git] / sed.c
diff --git a/sed.c b/sed.c
index 3901813754bd3d832f14ce6a5bf1d2be7e469286..0f0f4a28d19829907293ab7335e1fe544aee2ad8 100644 (file)
--- a/sed.c
+++ b/sed.c
@@ -670,11 +670,8 @@ extern int sed_main(int argc, char **argv)
 #endif
 
        /* do normal option parsing */
-       while ((opt = getopt(argc, argv, "hne:f:")) > 0) {
+       while ((opt = getopt(argc, argv, "ne:f:")) > 0) {
                switch (opt) {
-                       case 'h':
-                               show_usage();
-                               break;
                        case 'n':
                                be_quiet++;
                                break;
@@ -684,6 +681,8 @@ extern int sed_main(int argc, char **argv)
                        case 'f': 
                                load_cmd_file(optarg);
                                break;
+                       default:
+                               show_usage();
                }
        }