summaryrefslogtreecommitdiffstats
path: root/bfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfs.c')
-rw-r--r--bfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfs.c b/bfs.c
index 4303a77..432547d 100644
--- a/bfs.c
+++ b/bfs.c
@@ -534,7 +534,7 @@ static expression *parse_literal(parser_state *state) {
} else if (strcmp(arg, "-delete") == 0) {
state->cl->flags |= BFTW_DEPTH;
return new_action(state, eval_delete);
- } else if (strcmp(arg, "-depth") == 0) {
+ } else if (strcmp(arg, "-d") == 0 || strcmp(arg, "-depth") == 0) {
state->cl->flags |= BFTW_DEPTH;
return new_option(state);
} else if (strcmp(arg, "-false") == 0) {