summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/grijp.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/grijp.c b/src/grijp.c
index 898852c..8e9dba6 100644
--- a/src/grijp.c
+++ b/src/grijp.c
@@ -17,7 +17,9 @@
char *gpats;
-bool fixed, extended, icase;
+bool fixed = false;
+bool extended = false;
+bool icase = false;
static void usage(FILE *f) {
fprintf(f,
@@ -32,7 +34,7 @@ static void usage(FILE *f) {
// Returns pointer to argument array containing patterns and then the file names
static char** parse_options(int argc, char **argv) {
int opt;
- while ((opt = getopt(argc, argv, "FihV")) != -1) {
+ while ((opt = getopt(argc, argv, "FiEhV")) != -1) {
switch (opt) {
case 'F':
fixed = true;
@@ -40,6 +42,9 @@ static char** parse_options(int argc, char **argv) {
case 'i':
icase = true;
break;
+ case 'E':
+ extended = true;
+ break;
case 'h':
usage(stdout);