summaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-01-30 14:00:02 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-01-30 14:00:02 -0500
commit132dc9eaf7d6aa9e7892d9b55889f762f1140f4d (patch)
tree3c8dd890176873edcbc4a06852b4a64690c53488 /parse.c
parent3f9f913f5302b71ef57467798f62dd3e83b217bc (diff)
downloadbfs-132dc9eaf7d6aa9e7892d9b55889f762f1140f4d.tar.xz
Implement -empty.
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 348ddd8..5425afa 100644
--- a/parse.c
+++ b/parse.c
@@ -348,6 +348,8 @@ static expression *parse_literal(parser_state *state) {
} else if (strcmp(arg, "-d") == 0 || strcmp(arg, "-depth") == 0) {
state->cl->flags |= BFTW_DEPTH;
return new_option(state, arg);
+ } else if (strcmp(arg, "-empty") == 0) {
+ return new_test(state, eval_empty);
} else if (strcmp(arg, "-executable") == 0) {
return new_test_idata(state, eval_access, X_OK);
} else if (strcmp(arg, "-false") == 0) {