summaryrefslogtreecommitdiff
path: root/sed.c
diff options
context:
space:
mode:
Diffstat (limited to 'sed.c')
-rw-r--r--sed.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sed.c b/sed.c
index 3901813..0f0f4a2 100644
--- 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();
}
}