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 {
char *resid;
};
-OPTIONS_COMMAND_BEGIN("eclat",
- [<lstag, describe-tags>],
- [<List tags and their values>],
- [<[FILTER...]>],
- [<gnu>],
- [<noversion>])
+ECLAT_CL_BEGIN([<List tags and their values>],
+ [<[FILTER...]>])
OPTION(resource-id,r,[<[MAP:]ID>],
[<resource for which to list the tags>])
@@ -80,10 +76,9 @@ BEGIN
grecs_list_append(reslist, res);
END
-OPTIONS_END
+ECLAT_CL_END
-static void
-parse_options(int argc, char *argv[], int *index)
+ECLAT_CL_PARSER(parse_options, [<int argc, char *argv[], int *index>],[<
{
static char *resource_types[] = {
"customer-gateway",
@@ -113,9 +108,11 @@ parse_options(int argc, char *argv[], int *index)
{ NULL }
};
+
available_filters = filters;
proginfo.print_help_hook = list_filters;
reslist = grecs_list_create();
GETOPT(argc, argv, *index, exit(EX_USAGE))
}
+>])

Return to:

Send suggestions and report system problems to the System administrator.