Skip to content
This repository
Browse code

Fixing issue of long form options with arguments not working

  • Loading branch information...
commit 4b47b7cca0db0d1ce038e306dbac6b7a5879df55 1 parent 44aa8ce
Seth Davis authored December 24, 2011
4  bin/cq
@@ -31,8 +31,8 @@ def usage():
31 31
 def main():
32 32
     try:
33 33
         opts, args = getopt.getopt(sys.argv[1:], 'hcq:o:t:r:',
34  
-                                   ['help', 'clear', 'queue',
35  
-                                    'output', 'timeout', 'region'])
  34
+                                   ['help', 'clear', 'queue=',
  35
+                                    'output=', 'timeout=', 'region='])
36 36
     except:
37 37
         usage()
38 38
         sys.exit(2)
4  bin/s3multiput
@@ -195,8 +195,8 @@ def main():
195 195
 
196 196
     try:
197 197
         opts, args = getopt.getopt(sys.argv[1:], 'a:b:c::d:g:hi:np:qs:wr',
198  
-                                   ['access_key', 'bucket', 'callback', 'debug', 'help', 'grant',
199  
-                                    'ignore', 'no_op', 'prefix', 'quiet', 'secret_key', 'no_overwrite',
  198
+                                   ['access_key=', 'bucket=', 'callback=', 'debug=', 'help', 'grant=',
  199
+                                    'ignore=', 'no_op', 'prefix=', 'quiet', 'secret_key=', 'no_overwrite',
200 200
                                     'reduced'])
201 201
     except:
202 202
         usage()
6  bin/s3put
@@ -96,9 +96,9 @@ def main():
96 96
     try:
97 97
         opts, args = getopt.getopt(
98 98
                 sys.argv[1:], 'a:b:c::d:g:hi:np:qs:vwr',
99  
-                ['access_key', 'bucket', 'callback', 'debug', 'help', 'grant',
100  
-                 'ignore', 'no_op', 'prefix', 'quiet', 'secret_key',
101  
-                 'no_overwrite', 'reduced']
  99
+                ['access_key=', 'bucket=', 'callback=', 'debug=', 'help',
  100
+                 'grant=', 'ignore=', 'no_op', 'prefix=', 'quiet',
  101
+                 'secret_key=', 'no_overwrite', 'reduced']
102 102
                 )
103 103
     except:
104 104
         usage()

0 notes on commit 4b47b7c

Please sign in to comment.
Something went wrong with that request. Please try again.