aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorkatherine <shmibs@airen-no-jikken.icu>2019-05-08 07:06:27 -0700
committerkatherine <shmibs@airen-no-jikken.icu>2019-05-08 07:06:27 -0700
commitca0d95e26663e05d702c6f3a5627812dbf0c9f90 (patch)
tree3ed14314639ffa1421877c766ddc2c3d72fe9df9 /src/main.c
downloadconfconf-ca0d95e26663e05d702c6f3a5627812dbf0c9f90.tar.gz
initial commit
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
new file mode 100644
index 0000000..cd5eb3a
--- /dev/null
+++ b/src/main.c
@@ -0,0 +1,16 @@
+#include "opt.h"
+
+#include <stdio.h>
+
+int main(int argc, char **argv)
+{
+ opt_parse(argc, argv);
+
+ if (opt_infile_str())
+ puts(opt_infile_str());
+
+ if (opt_outfile_str())
+ puts(opt_outfile_str());
+
+ return 0;
+}