summaryrefslogtreecommitdiff
path: root/inc/args.h
diff options
context:
space:
mode:
authorjohannes <johannes.herman@gmail.com>2024-02-11 02:00:20 +0100
committerjohannes <johannes.herman@gmail.com>2024-02-11 02:00:20 +0100
commitc2e349569fcf796412b376db89304a19648f18b8 (patch)
treeaeb29720d99f7f42dd2def606ed87193f0ca3d8c /inc/args.h
parentcb4a7637943d407187184b28d602b750c9547fa5 (diff)
added argument parser and run function
Diffstat (limited to 'inc/args.h')
-rw-r--r--inc/args.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/inc/args.h b/inc/args.h
new file mode 100644
index 0000000..6c06fb2
--- /dev/null
+++ b/inc/args.h
@@ -0,0 +1,22 @@
+#ifndef ARGS_H
+#define ARGS_H
+
+#include "../inc/commands.h"
+
+#define MAX_COMMANDS 64
+
+typedef struct
+{
+ char *demopath;
+ char *mappath;
+ char *outpath;
+ char *extractmap;
+ char print;
+
+ int numcmds;
+ cmdinput commands[MAX_COMMANDS];
+} input;
+
+void parseargs(input *in, int argc, char *argv[]);
+
+#endif // ARGS_H