blob: a28cf4b9c72d213fe2251f896d821e0b8b141f07 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#include <argp.h>
2
3
4static const struct argp_option test_options[] =
5{
6 { NULL, 'a', NULL, OPTION_DOC, NULL },
7 { NULL, 'b', NULL, OPTION_DOC, NULL },
8 { NULL, 0, NULL, 0, NULL }
9};
10
11static struct argp test_argp =
12{
13 test_options
14};
15
16
17static int
18do_test (int argc, char *argv[])
19{
20 int i;
21 argp_parse (&test_argp, argc, argv, 0, &i, NULL);
22 return 0;
23}
24
25#define TEST_FUNCTION do_test (argc, argv)
26#include "../test-skeleton.c"