summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
new file mode 100644
index 0000000..765735c
--- /dev/null
+++ b/main.cpp
@@ -0,0 +1,14 @@
+#include "options.h"
+#include "compute.h"
+#include <iostream>
+
+
+int main(int argc, char **argv) {
+ Options options = parse_options(argc, argv);
+ std::cout << "Options:" << std::endl << options << std::endl;
+ HistImage img{compute_brot(options)};
+ if (options.outfname.value != "/dev/null")
+ img.render(options.outfname.value.data());
+}
+
+// vim: set sw=4 ts=4 noet: