r26509: Don't make boolean options eat the next argument.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 17 Dec 2007 12:21:29 +0000 (13:21 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:51:14 +0000 (05:51 +0100)
(This used to be commit b4ae4cbfe5b66364f437a76aa0a4f82e9bc39ce1)

source4/setup/provision.py

index c5f29c38eae2687d40d69daa13fa53ec33cb81f1..5a92ac7e8eecb2b02c331cff706d068be4206eb7 100755 (executable)
@@ -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]