summaryrefslogtreecommitdiffhomepage
path: root/editors
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-02-17 16:52:35 +0000
committerEric Andersen <andersen@codepoet.org>2001-02-17 16:52:35 +0000
commitb50da53e0c6e07bbf69ac7ec1730087edf6815a1 (patch)
tree6eddca7dd6a5a4a4e11ffee856d408067fdc576f /editors
parent3d20f772c2dc55acdc5f3503e7e308c387e4e15c (diff)
Get rid of long stale usage message code.
-Erik
Diffstat (limited to 'editors')
-rw-r--r--editors/sed.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/editors/sed.c b/editors/sed.c
index 390181375..0f0f4a28d 100644
--- a/editors/sed.c
+++ b/editors/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();
}
}