summaryrefslogtreecommitdiff
path: root/src/options.h
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2016-06-19 18:03:47 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2016-06-19 18:03:47 -0700
commit45be23beb4f6b33f1764c64817062b213fd45e7d (patch)
tree2b736de10518d428a37a090fabad74c74cc10753 /src/options.h
parent26452f2efa488df369263d2a5ff661147ede5640 (diff)
Extract option parsing to separate file
Diffstat (limited to 'src/options.h')
-rw-r--r--src/options.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/options.h b/src/options.h
new file mode 100644
index 0000000..e19e292
--- /dev/null
+++ b/src/options.h
@@ -0,0 +1,12 @@
+typedef struct {
+ int benchmark;
+ const char *filter;
+ const char *init_search;
+ const char *tty_filename;
+ int show_scores;
+ unsigned int num_lines;
+ unsigned int scrolloff;
+ const char *prompt;
+} options_t;
+
+void options_parse(options_t *options, int argc, char *argv[]);