summaryrefslogtreecommitdiff
path: root/options.h
diff options
context:
space:
mode:
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);