diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-07-20 23:14:48 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-07-20 23:26:02 -0400 |
commit | 03adbcf0aa8914fd5556b7913901c98a6940fae4 (patch) | |
tree | 03b085bae5ae82d5802990f1c63232df5c1449b6 /parse.c | |
parent | 3a94d05833019023636bc8ac55a686f4fa8cf3d8 (diff) | |
download | bfs-03adbcf0aa8914fd5556b7913901c98a6940fae4.tar.xz |
Implement -rm as an alias for -delete
From NetBSD.
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2156,6 +2156,9 @@ static struct expr *parse_help(struct parser_state *state, int arg1, int arg2) { cfprintf(cout, " %{blu}-sparse%{rs}\n"); cfprintf(cout, " Find files that occupy fewer disk blocks than expected\n\n"); + cfprintf(cout, " %{blu}-rm%{rs}\n"); + cfprintf(cout, " Delete any found files (same as %{blu}-delete%{rs}; implies %{blu}-depth%{rs})\n\n"); + cfprintf(cout, "%{bld}Extra features:%{rs}\n\n"); cfprintf(cout, " %{blu}-color%{rs}\n"); @@ -2278,6 +2281,7 @@ static const struct table_entry parse_table[] = { {"-readable", false, parse_access, R_OK}, {"-regex", false, parse_regex, 0}, {"-regextype", false, parse_regextype}, + {"-rm", false, parse_delete}, {"-samefile", false, parse_samefile}, {"-size", false, parse_size}, {"-sparse", false, parse_sparse}, |