diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2013-12-03 11:28:17 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2013-12-03 11:28:17 +0200 |
commit | 495c4a5cadf67b7c9b5e0c8b224f7b68c42c8da4 (patch) | |
tree | 39ec139daae669e0618bedd1a929edf0695d0662 /src | |
parent | 155a76453f41b7ad80af4f8b4bf0539f2df32498 (diff) | |
download | eclat-495c4a5cadf67b7c9b5e0c8b224f7b68c42c8da4.tar.gz eclat-495c4a5cadf67b7c9b5e0c8b224f7b68c42c8da4.tar.bz2 |
Bugfix and compatibility change in lssg/sg
* src/lssg.c (eclat_describe_security_groups): Fix the --name option.
* src/sg-cl.opt: Use -N as a shorcut for --next, and -n as the one
for --name, for compatibility with lssg.
Diffstat (limited to 'src')
-rw-r--r-- | src/lssg.c | 5 | ||||
-rw-r--r-- | src/sg-cl.opt | 4 |
2 files changed, 4 insertions, 5 deletions
@@ -29,14 +29,13 @@ eclat_describe_security_groups(eclat_command_env_t *env, int argc, char **argv) { "GroupId", MAP_GROUPID }, { "GroupName", MAP_GROUPNAME } }; - int n = !!name_option; parse_options(env, argc, argv, &i); argv += i; argc -= i; - translate_ids(argc, argv, rt[n].map); + translate_ids(argc, argv, rt[name_option].map); - describe_query_create(env, argc, argv, rt[n].resid); + describe_query_create(env, argc, argv, rt[name_option].resid); return 0; } diff --git a/src/sg-cl.opt b/src/sg-cl.opt index 3a44c29..7b16b44 100644 --- a/src/sg-cl.opt +++ b/src/sg-cl.opt @@ -29,7 +29,7 @@ BEGIN command = "RevokeSecurityGroupIngress"; END -OPTION(name,N,, +OPTION(name,n,, [<ID argument is a group name>]) BEGIN dest_n = GROUP_NAME; @@ -93,7 +93,7 @@ BEGIN from_port = optarg; END -OPTION(next,n,, +OPTION(next,N,, [<delimits rules>]) ALIAS(new) BEGIN |