From: Gustav Hållberg Date: Mon, 29 Dec 2008 14:32:58 +0000 (+0100) Subject: man pages: Bugfixed man pages for --sign and --ack flags; e.g., for stg-new X-Git-Tag: v0.15-rc1~68 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/6f775ac964243b25490e056610e5be5527e90fa6 man pages: Bugfixed man pages for --sign and --ack flags; e.g., for stg-new 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 Signed-off-by: Karl Hasselström --- diff --git a/stgit/argparse.py b/stgit/argparse.py index 0a5f66a..418a506 100644 --- 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