aboutsummaryrefslogtreecommitdiff
path: root/src/dscrtags-cl.opt
diff options
context:
space:
mode:
Diffstat (limited to 'src/dscrtags-cl.opt')
-rw-r--r--src/dscrtags-cl.opt30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/dscrtags-cl.opt b/src/dscrtags-cl.opt
index 230031a..adada32 100644
--- a/src/dscrtags-cl.opt
+++ b/src/dscrtags-cl.opt
@@ -26,5 +26,35 @@ OPTIONS_END
static void
parse_options(int argc, char *argv[], int *index)
{
+ static char *resource_types[] = {
+ "customer-gateway",
+ "dhcp-options",
+ "image",
+ "instance",
+ "internet-gateway",
+ "network-acl",
+ "reserved-instances",
+ "route-table",
+ "security-group",
+ "snapshot",
+ "spot-instances-request",
+ "subnet",
+ "volume",
+ "vpc",
+ "vpn-connection",
+ "vpn-gateway",
+ NULL
+ };
+
+ static struct filter_descr filters[] = {
+ { "key", FILTER_STRING },
+ { "resource-id", FILTER_STRING },
+ { "resource-type", FILTER_ENUM, resource_types },
+ { "value", FILTER_STRING },
+ { NULL }
+ };
+
+ 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.