chiark
/
gitweb
/
~mdw
/
stgit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4dd55ae
)
man pages: Bugfixed man pages for --sign and --ack flags; e.g., for stg-new
author
Gustav Hållberg
<gustav@virtutech.com>
Mon, 29 Dec 2008 14:32:58 +0000
(15:32 +0100)
committer
Karl Hasselström
<kha@treskal.com>
Mon, 29 Dec 2008 14:32:58 +0000
(15:32 +0100)
An optparse argument type 'callback' with a 'dest' setting showed as
"--sign SIGN". Use optparse's Option.takes_value() instead.
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/argparse.py
patch
|
blob
|
blame
|
history
diff --git
a/stgit/argparse.py
b/stgit/argparse.py
index 0a5f66a7f95fdd6ebb76dcb236bd4d733e4890ce..418a506d08a3ecf540cfea95931b82fb6ecfeab7 100644
(file)
--- a/
stgit/argparse.py
+++ b/
stgit/argparse.py
@@
-37,7
+37,7
@@
class opt(object):
return optparse.make_option(*self.pargs, **kwargs)
def metavar(self):
o = self.get_option()
- if not o.
nargs
:
+ if not o.
takes_value()
:
return None
if o.metavar:
return o.metavar