Browse code

Add command line options for AWS access key and secret key

Matt Sweeney authored on 2012/06/09 09:37:22
Showing 1 changed files
... ...
@@ -1481,6 +1481,8 @@ def main():
1481 1481
     optparser.add_option(      "--configure", dest="run_configure", action="store_true", help="Invoke interactive (re)configuration tool. Optionally use as '--configure s3://come-bucket' to test access to a specific bucket instead of attempting to list them all.")
1482 1482
     optparser.add_option("-c", "--config", dest="config", metavar="FILE", help="Config file name. Defaults to %default")
1483 1483
     optparser.add_option(      "--dump-config", dest="dump_config", action="store_true", help="Dump current configuration after parsing config files and command line options and exit.")
1484
+    optparser.add_option(      "--access_key", dest="access_key", help="AWS Access Key")
1485
+    optparser.add_option(      "--secret_key", dest="secret_key", help="AWS Secret Key")
1484 1486
 
1485 1487
     optparser.add_option("-n", "--dry-run", dest="dry_run", action="store_true", help="Only show what should be uploaded or downloaded but don't actually do it. May still perform S3 requests to get bucket listings and other information though (only for file transfer commands)")
1486 1488