From e33749af5bb339fbb4b371ad6f5f131299e1fdec Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 17 Dec 2007 13:21:29 +0100 Subject: r26509: Don't make boolean options eat the next argument. (This used to be commit b4ae4cbfe5b66364f437a76aa0a4f82e9bc39ce1) --- source4/setup/provision.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source4/setup/provision.py b/source4/setup/provision.py index c5f29c38ea..5a92ac7e8e 100755 --- a/source4/setup/provision.py +++ b/source4/setup/provision.py @@ -77,11 +77,12 @@ parser.add_option("--wheel", type="string", metavar="GROUPNAME", help="choose 'wheel' privileged group") parser.add_option("--users", type="string", metavar="GROUPNAME", help="choose 'users' group") -parser.add_option("--quiet", help="Be quiet") +parser.add_option("--quiet", help="Be quiet", action="store_true") parser.add_option("--blank", help="do not add users or groups, just the structure") parser.add_option("--ldap-base", - help="output only an LDIF file, suitable for creating an LDAP baseDN") + help="output only an LDIF file, suitable for creating an LDAP baseDN", + action="store_true") parser.add_option("--ldap-backend", type="string", metavar="LDAPSERVER", help="LDAP server to use for this provision") parser.add_option("--ldap-module=", type="string", metavar="MODULE", @@ -92,7 +93,7 @@ parser.add_option("--server-role", type="choice", metavar="ROLE", choices=["domain controller", "domain server"], help="Set server role to provision for (default standalone)") parser.add_option("--partitions-only", - help="Configure Samba's partitions, but do not modify them (ie, join a BDC)") + help="Configure Samba's partitions, but do not modify them (ie, join a BDC)", action="store_true") opts = parser.parse_args()[0] -- cgit