From c2b1dde3d602485dde0b7e1176b2f73c19202067 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 6 Feb 2019 23:21:32 -0500 Subject: 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. --- parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parse.c b/parse.c index d9e2791..cc12e86 100644 --- a/parse.c +++ b/parse.c @@ -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); } /** -- cgit v1.2.3