aboutsummaryrefslogtreecommitdiff
path: root/src/lsaddr-cl.opt
diff options
context:
space:
mode:
Diffstat (limited to 'src/lsaddr-cl.opt')
-rw-r--r--src/lsaddr-cl.opt52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/lsaddr-cl.opt b/src/lsaddr-cl.opt
new file mode 100644
index 0000000..9cab163
--- /dev/null
+++ b/src/lsaddr-cl.opt
@@ -0,0 +1,52 @@
+/* This file is part of Eclat.
+ Copyright (C) 2012, 2013 Sergey Poznyakoff.
+
+ Eclat is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ Eclat is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Eclat. If not, see <http://www.gnu.org/licenses/>. */
+
+OPTIONS_BEGIN("eclat describe-addresses",
+ [<describe elastic IP addresses>],
+ [<[FILTER...]>],
+ [<gnu>],
+ [<nousage>],
+ [<noversion>])
+
+OPTION(vpc,v,,
+ [<describe VPC addresses>])
+BEGIN
+ vpc = 1;
+END
+
+OPTIONS_END
+
+static char *domain_str[] = { "standard", "vpc", NULL };
+static struct filter_descr filters[] = {
+ { "domain", FILTER_ENUM, domain_str },
+ { "instance-id", FILTER_STRING },
+ { "public-ip", FILTER_STRING },
+ { "allocation-id", FILTER_STRING },
+ { "association-id", FILTER_STRING },
+ { "network-interface-id", FILTER_STRING },
+ { "network-interface-owner-id", FILTER_STRING },
+ { "private-ip-address", FILTER_STRING },
+ { NULL }
+};
+
+static void
+parse_options(int argc, char *argv[], int *index)
+{
+ available_filters = filters;
+ proginfo.print_help_hook = list_filters;
+ GETOPT(argc, argv, *index, exit(EX_USAGE))
+}
+

Return to:

Send suggestions and report system problems to the System administrator.