From 811f631c0978e02c8b4a771eead6e13160f1e528 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 11 Apr 2011 13:58:39 -0400 Subject: Suppress --on-master from ipa-client-install command-line and man page. This option is only used when configuring an IPA client on an IPA server. Describing it on the command-line will only confuse people so don't list it as an option. Ticket 1050 --- ipa-client/ipa-install/ipa-client-install | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ipa-client/ipa-install') diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install index 4e29fa98..ca96e86f 100755 --- a/ipa-client/ipa-install/ipa-client-install +++ b/ipa-client/ipa-install/ipa-client-install @@ -40,6 +40,7 @@ try: from ipapython.config import IPAOptionParser import SSSDConfig from ConfigParser import RawConfigParser + from optparse import SUPPRESS_HELP except ImportError: print >> sys.stderr, """\ There was a problem importing one of the required Python modules. The @@ -75,8 +76,10 @@ def parse_options(): help="Prompt for a password to join the IPA realm"), parser.add_option("-p", "--principal", dest="principal", help="principal to use to join the IPA realm"), + # --on-master is used in ipa-server-install and ipa-replica-install + # only, it isn't meant to be used on clients. parser.add_option("--on-master", dest="on_master", action="store_true", - help="use this option when run on a master", default=False) + help=SUPPRESS_HELP, default=False) parser.add_option("--permit", dest="permit", action="store_true", help="disable access rules by default, permit all access.", default=False) parser.add_option("--mkhomedir", dest="mkhomedir", action="store_true", -- cgit