aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--findutils/grep.c2
-rw-r--r--grep.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index 475b4ef21..8c6797647 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -232,6 +232,8 @@ extern int grep_main(int argc, char **argv)
before_buf = (char **)calloc(lines_before, sizeof(char *));
break;
#endif /* BB_FEATURE_GREP_CONTEXT */
+ default:
+ show_usage();
}
}
diff --git a/grep.c b/grep.c
index 475b4ef21..8c6797647 100644
--- a/grep.c
+++ b/grep.c
@@ -232,6 +232,8 @@ extern int grep_main(int argc, char **argv)
before_buf = (char **)calloc(lines_before, sizeof(char *));
break;
#endif /* BB_FEATURE_GREP_CONTEXT */
+ default:
+ show_usage();
}
}