diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-02-06 23:21:32 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-02-06 23:21:32 -0500 |
commit | c2b1dde3d602485dde0b7e1176b2f73c19202067 (patch) | |
tree | a02a774def9d5519e595620d112ca4c6a886d7bd /parse.c | |
parent | 61952bffb5356d8378df7180a981496dd5240830 (diff) | |
download | bfs-c2b1dde3d602485dde0b7e1176b2f73c19202067.tar.xz |
parse: Treat -d as a flag, not an option
This is consistent with BSD find, not with GNU find. But the GNU find
feature was an (incorrect) attempt to be compatible with BSD find
anyway.
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1127,12 +1127,12 @@ static struct expr *parse_delete(struct parser_state *state, int arg1, int arg2) } /** - * Parse -d, -depth. + * Parse -d. */ static struct expr *parse_depth(struct parser_state *state, int arg1, int arg2) { state->cmdline->flags |= BFTW_DEPTH; state->depth_arg = state->argv[0]; - return parse_nullary_option(state); + return parse_nullary_flag(state); } /** |