diff options
Diffstat (limited to 'src/lssnap-cl.opt')
-rw-r--r-- | src/lssnap-cl.opt | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/lssnap-cl.opt b/src/lssnap-cl.opt index be1f0d9..bb020ca 100644 --- a/src/lssnap-cl.opt +++ b/src/lssnap-cl.opt | |||
@@ -24,12 +24,8 @@ struct param { | |||
24 | 24 | ||
25 | static unsigned owner_idx = 1, rstby_idx = 1; | 25 | static unsigned owner_idx = 1, rstby_idx = 1; |
26 | 26 | ||
27 | OPTIONS_COMMAND_BEGIN("eclat", | 27 | ECLAT_CL_BEGIN([<describe EC2 snapshots>], |
28 | [<lssnap, describe-snapshots>], | 28 | [<[SNAP-ID...] [FILTER...]]>]) |
29 | [<describe EC2 snapshots>], | ||
30 | [<[SNAP-ID...] [FILTER...]]>], | ||
31 | [<gnu>], | ||
32 | [<noversion>]) | ||
33 | 29 | ||
34 | OPTION(owner,u,[<ID|self|amazon>], | 30 | OPTION(owner,u,[<ID|self|amazon>], |
35 | [<return the snapshots owned by the specified owner>]) | 31 | [<return the snapshots owned by the specified owner>]) |
@@ -50,12 +46,12 @@ BEGIN | |||
50 | p->value = optarg; | 46 | p->value = optarg; |
51 | grecs_list_append(parmlist, p); | 47 | grecs_list_append(parmlist, p); |
52 | END | 48 | END |
49 | |||
50 | ECLAT_CL_END | ||
53 | 51 | ||
54 | OPTIONS_END | 52 | ECLAT_CL_PARSER(parse_options, [<int argc, char *argv[], int *index>], [< |
55 | |||
56 | static void | ||
57 | parse_options(int argc, char *argv[], int *index) | ||
58 | { | 53 | { |
59 | parmlist = grecs_list_create(); | 54 | parmlist = grecs_list_create(); |
60 | GETOPT(argc, argv, *index, exit(EX_USAGE)) | 55 | GETOPT(argc, argv, *index, exit(EX_USAGE)) |
61 | } | 56 | } |
57 | >]) | ||