diff options
author | Martin Nagy <mnagy@redhat.com> | 2008-09-17 11:06:48 +0200 |
---|---|---|
committer | Martin Nagy <mnagy@redhat.com> | 2008-09-17 23:06:18 +0200 |
commit | 1634e0997380d43f19cbeeeb4f74544009a9a979 (patch) | |
tree | 11cc021d6b0db3c4ddc82cf3249321508aeb9a03 /ipa-server/ipa-install/ipa-replica-prepare | |
parent | 00d54a5668cf256ab6eae93cc3098230c43606df (diff) | |
download | freeipa-1634e0997380d43f19cbeeeb4f74544009a9a979.tar.gz freeipa-1634e0997380d43f19cbeeeb4f74544009a9a979.tar.xz freeipa-1634e0997380d43f19cbeeeb4f74544009a9a979.zip |
Add standard override options to ipa-replica-prepare
Fixes: 462489
Diffstat (limited to 'ipa-server/ipa-install/ipa-replica-prepare')
-rw-r--r-- | ipa-server/ipa-install/ipa-replica-prepare | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ipa-server/ipa-install/ipa-replica-prepare b/ipa-server/ipa-install/ipa-replica-prepare index 67445e394..07a21826e 100644 --- a/ipa-server/ipa-install/ipa-replica-prepare +++ b/ipa-server/ipa-install/ipa-replica-prepare @@ -32,12 +32,9 @@ from ipaserver import dsinstance, installutils, certs, ipaldap from ipa import version import ldap -def usage(): - print "ipa-replica-prepate FQDN (e.g. replica.example.com)" - sys.exit(1) - def parse_options(): - parser = OptionParser(version=version.VERSION) + usage = "%prog [options] FQDN (e.g. replica.example.com)" + parser = OptionParser(usage=usage, version=version.VERSION) parser.add_option("--dirsrv_pkcs12", dest="dirsrv_pkcs12", help="install certificate for the directory server") @@ -50,6 +47,7 @@ def parse_options(): parser.add_option("-p", "--password", dest="password", help="Directory Manager (existing master) password") + ipa.config.add_standard_options(parser) options, args = parser.parse_args() # If any of the PKCS#12 options are selected, all are required. Create a |