Browse code

Small improvements for --configure s3://bucket

Michal Ludvig authored on 2011/10/12 18:29:28
Showing 2 changed files
... ...
@@ -1473,7 +1473,7 @@ def main():
1473 1473
     optparser.set_defaults(config = config_file)
1474 1474
     optparser.set_defaults(verbosity = default_verbosity)
1475 1475
 
1476
-    optparser.add_option(      "--configure", dest="run_configure", action="store_true", help="Invoke interactive (re)configuration tool.")
1476
+    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.")
1477 1477
     optparser.add_option("-c", "--config", dest="config", metavar="FILE", help="Config file name. Defaults to %default")
1478 1478
     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.")
1479 1479
 
... ...
@@ -1697,6 +1697,7 @@ def main():
1697 1697
         sys.exit(0)
1698 1698
 
1699 1699
     if options.run_configure:
1700
+        # 'args' may contain the test-bucket URI
1700 1701
         run_configure(options.config, args)
1701 1702
         sys.exit(0)
1702 1703
 
... ...
@@ -102,7 +102,10 @@ changes you like.
102 102
 show this help message and exit
103 103
 .TP
104 104
 \fB\-\-configure\fR
105
-Invoke interactive (re)configuration tool.
105
+Invoke interactive (re)configuration tool. Optionally
106
+use as '--configure s3://come-bucket' to test access
107
+to a specific bucket instead of attempting to list
108
+them all.
106 109
 .TP
107 110
 \fB\-c\fR FILE, \fB\-\-config\fR=FILE
108 111
 Config file name. Defaults to /home/mludvig/.s3cfg