[Pkg-bazaar-commits] ./bzr/unstable r689: - make options with - work with external commands
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 08:20:43 UTC 2009
------------------------------------------------------------
revno: 689
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Wed 2005-06-15 14:18:42 +1000
message:
- make options with - work with external commands
patch from mpe
modified:
bzrlib/commands.py
-------------- next part --------------
=== modified file 'bzrlib/commands.py'
--- a/bzrlib/commands.py 2005-06-15 04:16:34 +0000
+++ b/bzrlib/commands.py 2005-06-15 04:18:42 +0000
@@ -289,10 +289,11 @@
keys = kargs.keys()
keys.sort()
for name in keys:
+ optname = name.replace('_','-')
value = kargs[name]
- if OPTIONS.has_key(name):
+ if OPTIONS.has_key(optname):
# it's an option
- opts.append('--%s' % name)
+ opts.append('--%s' % optname)
if value is not None and value is not True:
opts.append(str(value))
else:
More information about the Pkg-bazaar-commits
mailing list