blob: 248ab7ceaff0d933d1d3af8a447e9f334e6cc441 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#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, char **argv)
{
if (HX_getopt(t, &argc, &argv, HXOPT_USAGEONERR) != HXOPT_ERR_SUCCESS)
return EXIT_FAILURE;
HX_zvecfree(argv);
return EXIT_SUCCESS;
}
|