summaryrefslogtreecommitdiffstats
path: root/cmdline.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-03-13 16:26:33 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-03-15 12:48:33 -0400
commit56a862fded43b528eadc232d37a8684b48ef702c (patch)
tree2ee0b7417a8f16de396808aac7c7257e4b94f061 /cmdline.h
parent09558efdf0af09db73a4d16039a1e2718e7a58c5 (diff)
downloadbfs-56a862fded43b528eadc232d37a8684b48ef702c.tar.xz
diag: Make the -warn flag part of the cmdline
Diffstat (limited to 'cmdline.h')
-rw-r--r--cmdline.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/cmdline.h b/cmdline.h
index 422fc6c..bb75798 100644
--- a/cmdline.h
+++ b/cmdline.h
@@ -87,16 +87,18 @@ struct cmdline {
/** bftw() search strategy. */
enum bftw_strategy strategy;
- /** Optimization level. */
+ /** Optimization level (-O). */
int optlevel;
- /** Debugging flags. */
+ /** Debugging flags (-D). */
enum debug_flags debug;
- /** Whether to only handle paths with xargs-safe characters. */
- bool xargs_safe;
- /** Whether to ignore deletions that race with bfs. */
+ /** Whether to ignore deletions that race with bfs (-ignore_readdir_race). */
bool ignore_races;
- /** Whether to only return unique files. */
+ /** Whether to only return unique files (-unique). */
bool unique;
+ /** Whether to print warnings (-warn/-nowarn). */
+ bool warn;
+ /** Whether to only handle paths with xargs-safe characters (-X). */
+ bool xargs_safe;
/** The command line expression. */
struct expr *expr;