diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2015-11-26 10:41:17 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2015-11-26 10:41:17 -0500 |
commit | 154dc9258f62af852f91cd5eb1202405f71a50a5 (patch) | |
tree | dc782d2034083234fe1289e12c0a859d6ff7a808 | |
parent | 527d0dc1506584f29bf760ed3b2e6363f8c50a2f (diff) | |
download | bfs-154dc9258f62af852f91cd5eb1202405f71a50a5.tar.xz |
Support -d as an alias for -depth.
-rw-r--r-- | bfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |