From 7514f96173575c42c2f5592034211d19ff711a02 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Fri, 16 Jan 2009 11:07:21 -0700 Subject: New Param: fixed metavar bug in cli.py --- ipalib/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/cli.py') diff --git a/ipalib/cli.py b/ipalib/cli.py index 5cf68852..fb2fd95f 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -807,7 +807,7 @@ class CLI(object): else: kw['action'] = 'store_true' else: - kw['metavar'] = metavar=option.type.name.upper() + kw['metavar'] = metavar=option.__class__.__name__.upper() o = optparse.make_option('--%s' % to_cli(option.cli_name), **kw) parser.add_option(o) return parser -- cgit