summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-10-13 22:00:18 -0600
committerJason Gerard DeRose <jderose@redhat.com>2008-10-13 22:00:18 -0600
commit22669f1fc2ffb6de8a8d92a64132dd0b31e877b3 (patch)
treec99c227075bec5749b3fb9c7c7c1796cf36977ef /ipalib
parent2357360e2a077f56f01e9ce8bc5a21d87fea7675 (diff)
downloadfreeipa-22669f1fc2ffb6de8a8d92a64132dd0b31e877b3.tar.gz
freeipa-22669f1fc2ffb6de8a8d92a64132dd0b31e877b3.tar.xz
freeipa-22669f1fc2ffb6de8a8d92a64132dd0b31e877b3.zip
CLI.run_interactive() now uses Param.cli_name instead of Param.name for prompts and errors
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/cli.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py
index 378cc4c16..5bebc88d5 100644
--- a/ipalib/cli.py
+++ b/ipalib/cli.py
@@ -287,13 +287,13 @@ class CLI(object):
exit_error('Not enough arguments given')
default = param.get_default(**kw)
if default is None:
- prompt = '%s: ' % param.name
+ prompt = '%s: ' % param.cli_name
else:
- prompt = '%s [%s]: ' % (param.name, default)
+ prompt = '%s [%s]: ' % (param.cli_name, default)
error = None
while True:
if error is not None:
- print '>>> %s: %s' % (param.name, error)
+ print '>>> %s: %s' % (param.cli_name, error)
raw = raw_input(prompt)
try:
value = param(raw, **kw)