1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

python: Fix usage strings

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Joseph Sutton 2021-05-11 11:21:21 +12:00 committed by Jeremy Allison
parent ad3498ab16
commit b59fc43523
17 changed files with 17 additions and 17 deletions

View File

@ -26,7 +26,7 @@ def create_credential(lp, other):
c.set_gensec_features(other.get_gensec_features())
return c
parser = optparse.OptionParser("ldap [options] <host>")
parser = optparse.OptionParser("bind [options] <host>")
sambaopts = options.SambaOptions(parser)
parser.add_option_group(sambaopts)

View File

@ -23,7 +23,7 @@ from samba.dcerpc import dns
from samba.tests.subunitrun import SubunitOptions, TestProgram
from samba.tests.dns_base import DNSTKeyTest
parser = optparse.OptionParser("dns.py <server name> <server ip> [options]")
parser = optparse.OptionParser("dns_tkey.py <server name> <server ip> [options]")
sambaopts = options.SambaOptions(parser)
parser.add_option_group(sambaopts)

View File

@ -39,7 +39,7 @@ from ldb import FLAG_MOD_ADD, FLAG_MOD_REPLACE, FLAG_MOD_DELETE
from ldb import SCOPE_BASE, SCOPE_SUBTREE, SCOPE_ONELEVEL
from ldb import ERR_NO_SUCH_OBJECT
parser = optparse.OptionParser("ad_dc_performance.py [options] <host>")
parser = optparse.OptionParser("ad_dc_medley_performance.py [options] <host>")
sambaopts = options.SambaOptions(parser)
sambaopts.add_option("-p", "--use-paged-search", action="store_true",
help="Use paged search module")

View File

@ -36,7 +36,7 @@ from ldb import Message, MessageElement, Dn, LdbError
from ldb import FLAG_MOD_ADD, FLAG_MOD_REPLACE, FLAG_MOD_DELETE
from ldb import SCOPE_BASE, SCOPE_SUBTREE, SCOPE_ONELEVEL
parser = optparse.OptionParser("ad_dc_mulit_bind.py [options] <host>")
parser = optparse.OptionParser("ad_dc_multi_bind.py [options] <host>")
sambaopts = options.SambaOptions(parser)
parser.add_option_group(sambaopts)
parser.add_option_group(options.VersionOptions(parser))

View File

@ -38,7 +38,7 @@ from ldb import Message, MessageElement, Dn, LdbError
from ldb import FLAG_MOD_ADD, FLAG_MOD_REPLACE, FLAG_MOD_DELETE
from ldb import SCOPE_BASE, SCOPE_SUBTREE, SCOPE_ONELEVEL
parser = optparse.OptionParser("ad_dc_performance.py [options] <host>")
parser = optparse.OptionParser("ad_dc_search_performance.py [options] <host>")
sambaopts = options.SambaOptions(parser)
parser.add_option_group(sambaopts)
parser.add_option_group(options.VersionOptions(parser))

View File

@ -42,7 +42,7 @@ from ldb import SCOPE_SUBTREE, SCOPE_ONELEVEL, SCOPE_BASE, LdbError
from ldb import ERR_TIME_LIMIT_EXCEEDED, ERR_ADMIN_LIMIT_EXCEEDED, ERR_UNWILLING_TO_PERFORM
from ldb import Message
parser = optparse.OptionParser("large_ldap.py [options] <host>")
parser = optparse.OptionParser("asq.py [options] <host>")
sambaopts = options.SambaOptions(parser)
parser.add_option_group(sambaopts)
parser.add_option_group(options.VersionOptions(parser))

View File

@ -19,7 +19,7 @@ from password_lockout_base import BasePasswordTestCase
sys.path.insert(0, "bin/python")
parser = optparse.OptionParser("password_lockout.py [options] <host>")
parser = optparse.OptionParser("login_basics.py [options] <host>")
sambaopts = options.SambaOptions(parser)
parser.add_option_group(sambaopts)
parser.add_option_group(options.VersionOptions(parser))

View File

@ -20,7 +20,7 @@ from samba.samdb import SamDB
from samba.dcerpc import misc
from samba import colour
parser = optparse.OptionParser("linked_attributes.py [options] <host>")
parser = optparse.OptionParser("subtree_rename.py [options] <host>")
sambaopts = options.SambaOptions(parser)
parser.add_option_group(sambaopts)
parser.add_option_group(options.VersionOptions(parser))

View File

@ -33,7 +33,7 @@ from samba.upgradehelpers import get_paths, print_provision_ranges, findprovisio
from samba.ndr import ndr_unpack
from samba.dcerpc import misc
parser = optparse.OptionParser("provision [options]")
parser = optparse.OptionParser("findprovisionusnranges [options]")
sambaopts = options.SambaOptions(parser)
parser.add_option_group(sambaopts)
parser.add_option_group(options.VersionOptions(parser))

View File

@ -42,7 +42,7 @@ from samba import Ldb
from samba.samdb import SamDB
from ldb import SCOPE_SUBTREE, SCOPE_BASE
parser = optparse.OptionParser("get-descriptor [options]")
parser = optparse.OptionParser("get-descriptors [options]")
sambaopts = options.SambaOptions(parser)
credopts = options.CredentialsOptions(parser)
parser.add_option_group(credopts)

View File

@ -38,7 +38,7 @@ from samba import param
from samba.provision import ProvisionNames, provision_paths_from_lp
from samba.schema import get_dnsyntax_attributes, get_linked_attributes
parser = optparse.OptionParser("provision [options]")
parser = optparse.OptionParser("rebuildextendeddn [options]")
sambaopts = options.SambaOptions(parser)
parser.add_option_group(sambaopts)
parser.add_option_group(options.VersionOptions(parser))

View File

@ -36,7 +36,7 @@ from samba.upgradehelpers import get_ldbs, get_paths
__docformat__ = "restructuredText"
parser = optparse.OptionParser("provision [options]")
parser = optparse.OptionParser("renamedc [options]")
sambaopts = options.SambaOptions(parser)
parser.add_option_group(sambaopts)
parser.add_option_group(options.VersionOptions(parser))

View File

@ -34,7 +34,7 @@ from samba import getopt as options
from samba.samdb import SamDB
from samba.dbchecker import dbcheck
from samba.credentials import Credentials
parser = optparse.OptionParser("sambaundoguididx")
parser = optparse.OptionParser("samba_downgrade_db")
sambaopts = options.SambaOptions(parser)
parser.add_option_group(options.VersionOptions(parser))
parser.add_option("-H", "--URL", help="LDB URL for database",

View File

@ -248,7 +248,7 @@ def cleanup_obsolete_dns_files(paths):
if __name__ == '__main__':
# Setup command line parser
parser = optparse.OptionParser("upgradedns [options]")
parser = optparse.OptionParser("samba_upgradedns [options]")
sambaopts = options.SambaOptions(parser)
credopts = options.CredentialsOptions(parser)

View File

@ -153,7 +153,7 @@ def define_what_to_log(opts):
return what
parser = optparse.OptionParser("provision [options]")
parser = optparse.OptionParser("samba_upgradeprovision [options]")
sambaopts = options.SambaOptions(parser)
parser.add_option_group(sambaopts)
parser.add_option_group(options.VersionOptions(parser))

View File

@ -32,7 +32,7 @@ from samba.provision import find_provision_key_parameters
from samba.upgradehelpers import (get_paths, get_ldbs)
from ldb import SCOPE_BASE, Message, MessageElement, Dn, FLAG_MOD_ADD
parser = optparse.OptionParser("chgtdcpass [options]")
parser = optparse.OptionParser("addlotscontacts [options]")
sambaopts = options.SambaOptions(parser)
parser.add_option_group(sambaopts)
parser.add_option_group(options.VersionOptions(parser))

View File

@ -11,7 +11,7 @@ from samba.dcerpc import drsblobs, misc
from samba.ndr import ndr_pack, ndr_unpack
from samba import Ldb
parser = optparse.OptionParser("get-descriptor [options]")
parser = optparse.OptionParser("demodirsync [options]")
sambaopts = options.SambaOptions(parser)
credopts = options.CredentialsOptions(parser)
parser.add_option_group(credopts)