aboutsummaryrefslogtreecommitdiff
path: root/src/lstag-cl.opt
diff options
context:
space:
mode:
Diffstat (limited to 'src/lstag-cl.opt')
-rw-r--r--src/lstag-cl.opt15
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
24OPTIONS_COMMAND_BEGIN("eclat", 24ECLAT_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
31OPTION(resource-id,r,[<[MAP:]ID>], 27OPTION(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);
81END 77END
82 78
83OPTIONS_END 79ECLAT_CL_END
84 80
85static void 81ECLAT_CL_PARSER(parse_options, [<int argc, char *argv[], int *index>],[<
86parse_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>])

Return to:

Send suggestions and report system problems to the System administrator.