summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Falck <kennu@iki.fi>2013-01-02 18:41:29 +0200
committerKenneth Falck <kennu@iki.fi>2013-01-02 18:41:29 +0200
commit9b9ee3c72434c4cd7bd22faaef62d40ae0d87f33 (patch)
tree5cda41d49ee87786596bba7f40fd5efa9aadb8d8
parentcef0558a5b95a0dded23997d5dfd083ce1abc012 (diff)
downloadboto-9b9ee3c72434c4cd7bd22faaef62d40ae0d87f33.tar.gz
Fix short option parsing in bin/glacier and make help more helpful
-rwxr-xr-xbin/glacier24
1 files changed, 12 insertions, 12 deletions
diff --git a/bin/glacier b/bin/glacier
index 64460647..31ce99ab 100755
--- a/bin/glacier
+++ b/bin/glacier
@@ -51,15 +51,15 @@ glacier <command> [args]
created
Common args:
- access_key - Your AWS Access Key ID. If not supplied, boto will
- use the value of the environment variable
- AWS_ACCESS_KEY_ID
- secret_key - Your AWS Secret Access Key. If not supplied, boto
- will use the value of the environment variable
- AWS_SECRET_ACCESS_KEY
- region - AWS region to use. Possible vaules: us-east-1, us-west-1,
- us-west-2, ap-northeast-1, eu-west-1.
- Default: us-east-1
+ --access_key - Your AWS Access Key ID. If not supplied, boto will
+ use the value of the environment variable
+ AWS_ACCESS_KEY_ID
+ --secret_key - Your AWS Secret Access Key. If not supplied, boto
+ will use the value of the environment variable
+ AWS_SECRET_ACCESS_KEY
+ --region - AWS region to use. Possible vaules: us-east-1, us-west-1,
+ us-west-2, ap-northeast-1, eu-west-1.
+ Default: us-east-1
Vaults operations:
@@ -131,11 +131,11 @@ def main():
access_key = secret_key = None
region = 'us-east-1'
for option, value in opts:
- if option in ('a', '--access_key'):
+ if option in ('-a', '--access_key'):
access_key = value
- elif option in ('s', '--secret_key'):
+ elif option in ('-s', '--secret_key'):
secret_key = value
- elif option in ('r', '--region'):
+ elif option in ('-r', '--region'):
region = value
# handle each command
if command == 'vaults':