summaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-02-18 11:29:39 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-02-18 11:29:39 -0500
commitcf9fd80ece99d69cc809daf75f53705dbf64ea0e (patch)
treedcafe96cf2e40023e9de53c4863927ba23113740 /parse.c
parent21dcf8c0d75bafd6bc99ca390c95795449a1e7d5 (diff)
downloadbfs-cf9fd80ece99d69cc809daf75f53705dbf64ea0e.tar.xz
-follow is a positional option.
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/parse.c b/parse.c
index 3ee7359..e1d7da7 100644
--- a/parse.c
+++ b/parse.c
@@ -686,7 +686,7 @@ static struct expr *parse_literal(struct parser_state *state) {
case 'P':
if (strcmp(arg, "-P") == 0) {
cmdline->flags &= ~(BFTW_FOLLOW | BFTW_DETECT_CYCLES);
- return new_option(state, arg);
+ return new_positional_option(state);
}
break;
@@ -694,14 +694,14 @@ static struct expr *parse_literal(struct parser_state *state) {
if (strcmp(arg, "-H") == 0) {
cmdline->flags &= ~(BFTW_FOLLOW_NONROOT | BFTW_DETECT_CYCLES);
cmdline->flags |= BFTW_FOLLOW_ROOT;
- return new_option(state, arg);
+ return new_positional_option(state);
}
break;
case 'L':
if (strcmp(arg, "-L") == 0) {
cmdline->flags |= BFTW_FOLLOW | BFTW_DETECT_CYCLES;
- return new_option(state, arg);
+ return new_positional_option(state);
}
break;
@@ -754,7 +754,7 @@ static struct expr *parse_literal(struct parser_state *state) {
return &expr_false;
} else if (strcmp(arg, "-follow") == 0) {
cmdline->flags |= BFTW_FOLLOW | BFTW_DETECT_CYCLES;
- return new_option(state, arg);
+ return new_positional_option(state);
}
break;