diff options
author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2021-05-11 11:21:21 +1200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2021-09-04 00:10:37 +0000 |
commit | b59fc43523fb795bfab6846c266474873a15fdb9 (patch) | |
tree | 9cc37577b007df692bf553640da744c951026f3a | |
parent | ad3498ab1643459719cdef24903379245ee9cefe (diff) | |
download | samba-b59fc43523fb795bfab6846c266474873a15fdb9.tar.gz |
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>
-rwxr-xr-x | auth/credentials/tests/bind.py | 2 | ||||
-rw-r--r-- | python/samba/tests/dns_tkey.py | 2 | ||||
-rw-r--r-- | source4/dsdb/tests/python/ad_dc_medley_performance.py | 2 | ||||
-rw-r--r-- | source4/dsdb/tests/python/ad_dc_multi_bind.py | 2 | ||||
-rw-r--r-- | source4/dsdb/tests/python/ad_dc_search_performance.py | 2 | ||||
-rw-r--r-- | source4/dsdb/tests/python/asq.py | 2 | ||||
-rwxr-xr-x | source4/dsdb/tests/python/login_basics.py | 2 | ||||
-rw-r--r-- | source4/dsdb/tests/python/subtree_rename.py | 2 | ||||
-rwxr-xr-x | source4/scripting/bin/findprovisionusnranges | 2 | ||||
-rwxr-xr-x | source4/scripting/bin/get-descriptors | 2 | ||||
-rwxr-xr-x | source4/scripting/bin/rebuildextendeddn | 2 | ||||
-rwxr-xr-x | source4/scripting/bin/renamedc | 2 | ||||
-rwxr-xr-x | source4/scripting/bin/samba_downgrade_db | 2 | ||||
-rwxr-xr-x | source4/scripting/bin/samba_upgradedns | 2 | ||||
-rwxr-xr-x | source4/scripting/bin/samba_upgradeprovision | 2 | ||||
-rw-r--r-- | source4/scripting/devel/addlotscontacts | 2 | ||||
-rwxr-xr-x | source4/scripting/devel/demodirsync.py | 2 |
17 files changed, 17 insertions, 17 deletions
diff --git a/auth/credentials/tests/bind.py b/auth/credentials/tests/bind.py index a256a930a8a..a38021b5ded 100755 --- a/auth/credentials/tests/bind.py +++ b/auth/credentials/tests/bind.py @@ -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) diff --git a/python/samba/tests/dns_tkey.py b/python/samba/tests/dns_tkey.py index 07316271d56..42f73ba2921 100644 --- a/python/samba/tests/dns_tkey.py +++ b/python/samba/tests/dns_tkey.py @@ -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) diff --git a/source4/dsdb/tests/python/ad_dc_medley_performance.py b/source4/dsdb/tests/python/ad_dc_medley_performance.py index ebd63136639..010790d0a1a 100644 --- a/source4/dsdb/tests/python/ad_dc_medley_performance.py +++ b/source4/dsdb/tests/python/ad_dc_medley_performance.py @@ -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") diff --git a/source4/dsdb/tests/python/ad_dc_multi_bind.py b/source4/dsdb/tests/python/ad_dc_multi_bind.py index 73e1a6b9ba7..564fb9e0a85 100644 --- a/source4/dsdb/tests/python/ad_dc_multi_bind.py +++ b/source4/dsdb/tests/python/ad_dc_multi_bind.py @@ -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)) diff --git a/source4/dsdb/tests/python/ad_dc_search_performance.py b/source4/dsdb/tests/python/ad_dc_search_performance.py index 27f6cb3545c..0afd7a2582e 100644 --- a/source4/dsdb/tests/python/ad_dc_search_performance.py +++ b/source4/dsdb/tests/python/ad_dc_search_performance.py @@ -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)) diff --git a/source4/dsdb/tests/python/asq.py b/source4/dsdb/tests/python/asq.py index 33973d66c37..72fa8bb9615 100644 --- a/source4/dsdb/tests/python/asq.py +++ b/source4/dsdb/tests/python/asq.py @@ -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)) diff --git a/source4/dsdb/tests/python/login_basics.py b/source4/dsdb/tests/python/login_basics.py index 09f8ea36ec8..91cc3c928f7 100755 --- a/source4/dsdb/tests/python/login_basics.py +++ b/source4/dsdb/tests/python/login_basics.py @@ -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)) diff --git a/source4/dsdb/tests/python/subtree_rename.py b/source4/dsdb/tests/python/subtree_rename.py index df85d05eb4b..cace780a958 100644 --- a/source4/dsdb/tests/python/subtree_rename.py +++ b/source4/dsdb/tests/python/subtree_rename.py @@ -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)) diff --git a/source4/scripting/bin/findprovisionusnranges b/source4/scripting/bin/findprovisionusnranges index 909c9a1d8fc..b05b5cee3e8 100755 --- a/source4/scripting/bin/findprovisionusnranges +++ b/source4/scripting/bin/findprovisionusnranges @@ -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)) diff --git a/source4/scripting/bin/get-descriptors b/source4/scripting/bin/get-descriptors index f9b9cd7d170..6e6922282f6 100755 --- a/source4/scripting/bin/get-descriptors +++ b/source4/scripting/bin/get-descriptors @@ -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) diff --git a/source4/scripting/bin/rebuildextendeddn b/source4/scripting/bin/rebuildextendeddn index f5137f979d6..d5c0ecb7aa1 100755 --- a/source4/scripting/bin/rebuildextendeddn +++ b/source4/scripting/bin/rebuildextendeddn @@ -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)) diff --git a/source4/scripting/bin/renamedc b/source4/scripting/bin/renamedc index ef3aa75db76..90618810039 100755 --- a/source4/scripting/bin/renamedc +++ b/source4/scripting/bin/renamedc @@ -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)) diff --git a/source4/scripting/bin/samba_downgrade_db b/source4/scripting/bin/samba_downgrade_db index 43a803c4e82..b9a09098a8a 100755 --- a/source4/scripting/bin/samba_downgrade_db +++ b/source4/scripting/bin/samba_downgrade_db @@ -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", diff --git a/source4/scripting/bin/samba_upgradedns b/source4/scripting/bin/samba_upgradedns index 72e6a52e76e..ac2fdfca5ef 100755 --- a/source4/scripting/bin/samba_upgradedns +++ b/source4/scripting/bin/samba_upgradedns @@ -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) diff --git a/source4/scripting/bin/samba_upgradeprovision b/source4/scripting/bin/samba_upgradeprovision index da3f85c4ae9..c918462083d 100755 --- a/source4/scripting/bin/samba_upgradeprovision +++ b/source4/scripting/bin/samba_upgradeprovision @@ -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)) diff --git a/source4/scripting/devel/addlotscontacts b/source4/scripting/devel/addlotscontacts index 8e6b27802ce..9ecd16b94ba 100644 --- a/source4/scripting/devel/addlotscontacts +++ b/source4/scripting/devel/addlotscontacts @@ -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)) diff --git a/source4/scripting/devel/demodirsync.py b/source4/scripting/devel/demodirsync.py index ec548ae2147..06eacf335a5 100755 --- a/source4/scripting/devel/demodirsync.py +++ b/source4/scripting/devel/demodirsync.py @@ -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) |