diff options
Diffstat (limited to 'src/lstag-cl.opt')
-rw-r--r-- | src/lstag-cl.opt | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/lstag-cl.opt b/src/lstag-cl.opt index af8064d..dfb8fc0 100644 --- a/src/lstag-cl.opt +++ b/src/lstag-cl.opt | |||
@@ -21,12 +21,8 @@ struct resource { | |||
21 | char *resid; | 21 | char *resid; |
22 | }; | 22 | }; |
23 | 23 | ||
24 | OPTIONS_COMMAND_BEGIN("eclat", | 24 | ECLAT_CL_BEGIN([<List tags and their values>], |
25 | [<lstag, describe-tags>], | 25 | [<[FILTER...]>]) |
26 | [<List tags and their values>], | ||
27 | [<[FILTER...]>], | ||
28 | [<gnu>], | ||
29 | [<noversion>]) | ||
30 | 26 | ||
31 | OPTION(resource-id,r,[<[MAP:]ID>], | 27 | OPTION(resource-id,r,[<[MAP:]ID>], |
32 | [<resource for which to list the tags>]) | 28 | [<resource for which to list the tags>]) |
@@ -80,10 +76,9 @@ BEGIN | |||
80 | grecs_list_append(reslist, res); | 76 | grecs_list_append(reslist, res); |
81 | END | 77 | END |
82 | 78 | ||
83 | OPTIONS_END | 79 | ECLAT_CL_END |
84 | 80 | ||
85 | static void | 81 | ECLAT_CL_PARSER(parse_options, [<int argc, char *argv[], int *index>],[< |
86 | parse_options(int argc, char *argv[], int *index) | ||
87 | { | 82 | { |
88 | static char *resource_types[] = { | 83 | static char *resource_types[] = { |
89 | "customer-gateway", | 84 | "customer-gateway", |
@@ -113,9 +108,11 @@ parse_options(int argc, char *argv[], int *index) | |||
113 | { NULL } | 108 | { NULL } |
114 | }; | 109 | }; |
115 | 110 | ||
111 | |||
116 | available_filters = filters; | 112 | available_filters = filters; |
117 | proginfo.print_help_hook = list_filters; | 113 | proginfo.print_help_hook = list_filters; |
118 | 114 | ||
119 | reslist = grecs_list_create(); | 115 | reslist = grecs_list_create(); |
120 | GETOPT(argc, argv, *index, exit(EX_USAGE)) | 116 | GETOPT(argc, argv, *index, exit(EX_USAGE)) |
121 | } | 117 | } |
118 | >]) | ||