summaryrefslogtreecommitdiff
path: root/options.h
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2025-02-16 20:03:40 +0100
committerTom Smeding <tom@tomsmeding.com>2025-02-16 20:03:40 +0100
commit39148b1b6dc6c7a10f7e713ece084b6d5cf27537 (patch)
tree619c9d951b1356bfc8dcaba45a66166972992170 /options.h
Initial
Diffstat (limited to 'options.h')
-rw-r--r--options.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/options.h b/options.h
new file mode 100644
index 0000000..f015c33
--- /dev/null
+++ b/options.h
@@ -0,0 +1,22 @@
+#pragma once
+
+#include <stdbool.h>
+#include <stddef.h>
+#include "filter.h"
+
+
+struct options {
+ size_t nfilters;
+ struct filter_rule *filters;
+
+ size_t ncachetags;
+ char **cachetags;
+
+ char *rootpath;
+
+ int print_depth;
+
+ bool debug;
+};
+
+struct options parse_options(int argc, char **argv);