summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2015-11-26 10:41:17 -0500
committerTavian Barnes <tavianator@tavianator.com>2015-11-26 10:41:17 -0500
commit154dc9258f62af852f91cd5eb1202405f71a50a5 (patch)
treedc782d2034083234fe1289e12c0a859d6ff7a808
parent527d0dc1506584f29bf760ed3b2e6363f8c50a2f (diff)
downloadbfs-154dc9258f62af852f91cd5eb1202405f71a50a5.tar.xz
Support -d as an alias for -depth.
-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) {