diff options
Diffstat (limited to 'src/lsaddr-cl.opt')
-rw-r--r-- | src/lsaddr-cl.opt | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/lsaddr-cl.opt b/src/lsaddr-cl.opt index 071bb27..c663f51 100644 --- a/src/lsaddr-cl.opt +++ b/src/lsaddr-cl.opt | |||
@@ -14,12 +14,8 @@ | |||
14 | You should have received a copy of the GNU General Public License | 14 | You should have received a copy of the GNU General Public License |
15 | along with Eclat. If not, see <http://www.gnu.org/licenses/>. */ | 15 | along with Eclat. If not, see <http://www.gnu.org/licenses/>. */ |
16 | 16 | ||
17 | OPTIONS_COMMAND_BEGIN("eclat", | 17 | ECLAT_CL_BEGIN([<describe elastic IP addresses>], |
18 | [<lsaddr, describe-addresses>], | 18 | [<[FILTER...]>]) |
19 | [<describe elastic IP addresses>], | ||
20 | [<[FILTER...]>], | ||
21 | [<gnu>], | ||
22 | [<noversion>]) | ||
23 | 19 | ||
24 | OPTION(vpc,v,, | 20 | OPTION(vpc,v,, |
25 | [<describe VPC addresses>]) | 21 | [<describe VPC addresses>]) |
@@ -27,7 +23,7 @@ BEGIN | |||
27 | vpc = 1; | 23 | vpc = 1; |
28 | END | 24 | END |
29 | 25 | ||
30 | OPTIONS_END | 26 | ECLAT_CL_END |
31 | 27 | ||
32 | static char *domain_str[] = { "standard", "vpc", NULL }; | 28 | static char *domain_str[] = { "standard", "vpc", NULL }; |
33 | static struct filter_descr filters[] = { | 29 | static struct filter_descr filters[] = { |
@@ -42,11 +38,10 @@ static struct filter_descr filters[] = { | |||
42 | { NULL } | 38 | { NULL } |
43 | }; | 39 | }; |
44 | 40 | ||
45 | static void | 41 | ECLAT_CL_PARSER(parse_options, [<int argc, char *argv[], int *index>], [< |
46 | parse_options(int argc, char *argv[], int *index) | ||
47 | { | 42 | { |
48 | available_filters = filters; | 43 | available_filters = filters; |
49 | proginfo.print_help_hook = list_filters; | 44 | proginfo.print_help_hook = list_filters; |
50 | GETOPT(argc, argv, *index, exit(EX_USAGE)) | 45 | GETOPT(argc, argv, *index, exit(EX_USAGE)) |
51 | } | 46 | } |
52 | 47 | >]) | |