summaryrefslogtreecommitdiff
path: root/src/tx-option.cpp
blob: b70110f258e7f54089ee868c95560ec73c8bb19a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef __cplusplus
#	include <stdlib.h>
#else
#	include <cstdlib>
#endif
#include <libHX/option.h>

static unsigned int g_verbose;
static const struct HXoption t[] = {
	{nullptr, 'v', HXTYPE_NONE | HXOPT_INC, &g_verbose},
	HXOPT_AUTOHELP,
	HXOPT_TABLEEND,
};

int main(int argc, const char **argv)
{
	HX_getopt(t, &argc, &argv, HXOPT_USAGEONERR);
	return EXIT_SUCCESS;
}