diff options
author | Stanislav Laznicka <slaznick@redhat.com> | 2017-02-21 10:21:36 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2017-02-21 15:30:24 +0100 |
commit | 9ac068ad04a2323192f9447986a3d1c5431f1e50 (patch) | |
tree | b23fac539796229c27b9f2df8e53db9c4e0bb561 | |
parent | 6d34c2169fcd520cc726e58e01d008ae3637aad4 (diff) | |
download | freeipa-9ac068ad04a2323192f9447986a3d1c5431f1e50.tar.gz freeipa-9ac068ad04a2323192f9447986a3d1c5431f1e50.tar.xz freeipa-9ac068ad04a2323192f9447986a3d1c5431f1e50.zip |
Don't prepend option names with additional '--'
The options now have '--' prepended by their names already, don't
add it.
https://fedorahosted.org/freeipa/ticket/6392
Reviewed-By: Martin Basti <mbasti@redhat.com>
-rw-r--r-- | ipapython/install/cli.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipapython/install/cli.py b/ipapython/install/cli.py index 441c875f6..741bf9d89 100644 --- a/ipapython/install/cli.py +++ b/ipapython/install/cli.py @@ -321,7 +321,7 @@ class ConfigureTool(admintool.AdminTool): index = self.positional_arguments.index(e.name) except ValueError: cli_name = knob_cls.cli_names[0] or e.name.replace('_', '-') - desc = "option --{0}".format(cli_name) + desc = "option {0}".format(cli_name) else: desc = "argument {0}".format(index + 1) self.option_parser.error("{0}: {1}".format(desc, e)) |