1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-26 03:42:04 +03:00

samba-tool: Don't require full prog line to be in synopsis.

This commit is contained in:
Jelmer Vernooij
2011-10-13 23:27:22 +02:00
parent b5d5945801
commit 9213f398ad
17 changed files with 80 additions and 98 deletions

View File

@ -62,7 +62,7 @@ def get_testparm_var(testparm, smbconf, varname):
class cmd_domain_export_keytab(Command):
"""Dumps kerberos keys of the domain into a keytab"""
synopsis = "%prog domain exportkeytab <keytab> [options]"
synopsis = "%prog <keytab> [options]"
takes_options = [
]
@ -79,7 +79,7 @@ class cmd_domain_export_keytab(Command):
class cmd_domain_join(Command):
"""Joins domain as either member or backup domain controller *"""
synopsis = "%prog domain join <dnsdomain> [DC|RODC|MEMBER|SUBDOMAIN] [options]"
synopsis = "%prog <dnsdomain> [DC|RODC|MEMBER|SUBDOMAIN] [options]"
takes_options = [
Option("--server", help="DC to join", type=str),
@ -140,7 +140,7 @@ class cmd_domain_join(Command):
class cmd_domain_level(Command):
"""Raises domain and forest function levels"""
synopsis = "%prog domain level (show|raise <options>) [options]"
synopsis = "%prog (show|raise <options>) [options]"
takes_options = [
Option("-H", "--URL", help="LDB URL for database or target server", type=str,
@ -339,7 +339,7 @@ class cmd_domain_level(Command):
class cmd_domain_machinepassword(Command):
"""Gets a machine password out of our SAM"""
synopsis = "%prog domain machinepassword <accountname> [options]"
synopsis = "%prog <accountname> [options]"
takes_args = ["secret"]
@ -370,7 +370,7 @@ class cmd_domain_passwordsettings(Command):
and maximum password age) on a Samba4 server.
"""
synopsis = "%prog domain passwordsettings (show|set <options>) [options]"
synopsis = "%prog (show|set <options>) [options]"
takes_options = [
Option("-H", "--URL", help="LDB URL for database or target server", type=str,
@ -534,7 +534,7 @@ class cmd_domain_samba3upgrade(Command):
samba3 testparm utility (with --testparm).
"""
synopsis = "%prog domain samba3upgrade [options] <samba3_smb_conf>"
synopsis = "%prog [options] <samba3_smb_conf>"
takes_optiongroups = {
"sambaopts": options.SambaOptions,