aboutsummaryrefslogtreecommitdiff
path: root/src/lsimg-cl.opt
diff options
context:
space:
mode:
Diffstat (limited to 'src/lsimg-cl.opt')
-rw-r--r--src/lsimg-cl.opt17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/lsimg-cl.opt b/src/lsimg-cl.opt
index 955b960..57bfb0c 100644
--- a/src/lsimg-cl.opt
+++ b/src/lsimg-cl.opt
@@ -17,12 +17,8 @@
static int owner_n;
static int xby_n;
-OPTIONS_COMMAND_BEGIN("eclat",
- [<lsimg, describe-images>],
- [<describe Amazon images>],
- [<[FILTER...] [AMI...]>],
- [<gnu>],
- [<noversion>])
+ECLAT_CL_BEGIN([<describe Amazon images>],
+ [<[FILTER...] [AMI...]>])
OPTION(all,a,,
[<describe all images>])
@@ -45,11 +41,11 @@ BEGIN
eclat_query_add_param(q, bufptr, optarg);
END
-OPTIONS_END
+ECLAT_CL_END
-static void
-parse_options(struct ec2_query *q, int argc, char *argv[], int *idx)
+ECLAT_CL_PARSER(parse_options,[<int argc, char *argv[], int *idx>], [<
{
+ struct ec2_query *q = env->query;
char *bufptr = NULL;
size_t bufsize = 0;
static char *arch[] = { "i386", "x86_64", NULL };
@@ -98,7 +94,8 @@ parse_options(struct ec2_query *q, int argc, char *argv[], int *idx)
GETOPT(argc, argv, *idx, exit(EX_USAGE))
free(bufptr);
}
-
+>]
+)

Return to:

Send suggestions and report system problems to the System administrator.