From 22669f1fc2ffb6de8a8d92a64132dd0b31e877b3 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Mon, 13 Oct 2008 22:00:18 -0600 Subject: CLI.run_interactive() now uses Param.cli_name instead of Param.name for prompts and errors --- ipalib/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ipalib') 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) -- cgit