diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2016-02-18 11:29:39 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2016-02-18 11:29:39 -0500 |
commit | cf9fd80ece99d69cc809daf75f53705dbf64ea0e (patch) | |
tree | dcafe96cf2e40023e9de53c4863927ba23113740 /parse.c | |
parent | 21dcf8c0d75bafd6bc99ca390c95795449a1e7d5 (diff) | |
download | bfs-cf9fd80ece99d69cc809daf75f53705dbf64ea0e.tar.xz |
-follow is a positional option.
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |