diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-17 13:21:29 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:51:14 +0100 |
commit | e33749af5bb339fbb4b371ad6f5f131299e1fdec (patch) | |
tree | e03d5a5fc8e1314fae3ed2b7b1f85c53860331a1 | |
parent | 8489f0b61e799d0892c7924044dafb82b8eaf40a (diff) | |
download | samba-e33749af5bb339fbb4b371ad6f5f131299e1fdec.tar.gz samba-e33749af5bb339fbb4b371ad6f5f131299e1fdec.tar.bz2 samba-e33749af5bb339fbb4b371ad6f5f131299e1fdec.zip |
r26509: Don't make boolean options eat the next argument.
(This used to be commit b4ae4cbfe5b66364f437a76aa0a4f82e9bc39ce1)
-rwxr-xr-x | source4/setup/provision.py | 7 |
1 files 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] |