diff options
| author | Jan Cholasta <jcholast@redhat.com> | 2016-10-27 09:23:22 +0200 |
|---|---|---|
| committer | Jan Cholasta <jcholast@redhat.com> | 2016-11-11 12:17:25 +0100 |
| commit | a641e279ff76e09f59c4d5fef1dc1f9355dbacf7 (patch) | |
| tree | dda2f55355b64d028c42cbcb88ff4281f1b6329d /install/tools | |
| parent | 8c742b1539591b49474fe8ec871e1b523e9898bd (diff) | |
| download | freeipa-a641e279ff76e09f59c4d5fef1dc1f9355dbacf7.tar.gz freeipa-a641e279ff76e09f59c4d5fef1dc1f9355dbacf7.tar.xz freeipa-a641e279ff76e09f59c4d5fef1dc1f9355dbacf7.zip | |
install: improve CLI positional argument handling
Instead of specifying which knobs should be positional arguments in
cli.install_tool(), do it using a flag in knob definition, where the rest
of CLI configuration is.
As a side effect, the usage string for CLI tools can now be generated
automatically.
https://fedorahosted.org/freeipa/ticket/6392
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'install/tools')
| -rwxr-xr-x | install/tools/ipa-replica-install | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/install/tools/ipa-replica-install b/install/tools/ipa-replica-install index b3f0361c6..27be5f8f4 100755 --- a/install/tools/ipa-replica-install +++ b/install/tools/ipa-replica-install @@ -26,8 +26,6 @@ from ipaserver.install.server import Replica ReplicaInstall = cli.install_tool( Replica, command_name='ipa-replica-install', - positional_arguments=['replica_file'], - usage='%prog [options] [REPLICA_FILE]', log_file_name=paths.IPAREPLICA_INSTALL_LOG, debug_option=True, ) |
