summaryrefslogtreecommitdiff
path: root/src/tx-option.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tx-option.cpp')
-rw-r--r--src/tx-option.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/tx-option.cpp b/src/tx-option.cpp
new file mode 100644
index 0000000..55e3566
--- /dev/null
+++ b/src/tx-option.cpp
@@ -0,0 +1,17 @@
+#ifndef __cplusplus
+# include <stdlib.h>
+#else
+# include <cstdlib>
+#endif
+#include <libHX/option.h>
+
+static const struct HXoption t[] = {
+ HXOPT_AUTOHELP,
+ HXOPT_TABLEEND,
+};
+
+int main(int argc, const char **argv)
+{
+ HX_getopt(t, &argc, &argv, HXOPT_USAGEONERR);
+ return EXIT_SUCCESS;
+}