summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-02-06 23:21:32 -0500
committerTavian Barnes <tavianator@tavianator.com>2019-02-06 23:21:32 -0500
commitc2b1dde3d602485dde0b7e1176b2f73c19202067 (patch)
treea02a774def9d5519e595620d112ca4c6a886d7bd
parent61952bffb5356d8378df7180a981496dd5240830 (diff)
downloadbfs-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.
-rw-r--r--parse.c4
1 files 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);
}
/**