summaryrefslogtreecommitdiffstats
path: root/ipalib/cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r--ipalib/cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py
index 5cf688527..fb2fd95f4 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