Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fixing issue of long form options with arguments not working
Browse files Browse the repository at this point in the history
  • Loading branch information
seedifferently committed Dec 25, 2011
1 parent 44aa8ce commit 4b47b7c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions bin/cq
Expand Up @@ -31,8 +31,8 @@ def usage():
def main():
try:
opts, args = getopt.getopt(sys.argv[1:], 'hcq:o:t:r:',
['help', 'clear', 'queue',
'output', 'timeout', 'region'])
['help', 'clear', 'queue=',
'output=', 'timeout=', 'region='])
except:
usage()
sys.exit(2)
Expand Down
4 changes: 2 additions & 2 deletions bin/s3multiput
Expand Up @@ -195,8 +195,8 @@ def main():

try:
opts, args = getopt.getopt(sys.argv[1:], 'a:b:c::d:g:hi:np:qs:wr',
['access_key', 'bucket', 'callback', 'debug', 'help', 'grant',
'ignore', 'no_op', 'prefix', 'quiet', 'secret_key', 'no_overwrite',
['access_key=', 'bucket=', 'callback=', 'debug=', 'help', 'grant=',
'ignore=', 'no_op', 'prefix=', 'quiet', 'secret_key=', 'no_overwrite',
'reduced'])
except:
usage()
Expand Down
6 changes: 3 additions & 3 deletions bin/s3put
Expand Up @@ -96,9 +96,9 @@ def main():
try:
opts, args = getopt.getopt(
sys.argv[1:], 'a:b:c::d:g:hi:np:qs:vwr',
['access_key', 'bucket', 'callback', 'debug', 'help', 'grant',
'ignore', 'no_op', 'prefix', 'quiet', 'secret_key',
'no_overwrite', 'reduced']
['access_key=', 'bucket=', 'callback=', 'debug=', 'help',
'grant=', 'ignore=', 'no_op', 'prefix=', 'quiet',
'secret_key=', 'no_overwrite', 'reduced']
)
except:
usage()
Expand Down

0 comments on commit 4b47b7c

Please sign in to comment.