From 9213f398adf9aa29d0c59a4caee440dba70e4a7d Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 13 Oct 2011 23:27:22 +0200 Subject: samba-tool: Don't require full prog line to be in synopsis. --- source4/scripting/python/samba/netcmd/domain.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source4/scripting/python/samba/netcmd/domain.py') diff --git a/source4/scripting/python/samba/netcmd/domain.py b/source4/scripting/python/samba/netcmd/domain.py index 77026b98396..ce9d7d8682f 100644 --- a/source4/scripting/python/samba/netcmd/domain.py +++ b/source4/scripting/python/samba/netcmd/domain.py @@ -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 [options]" + synopsis = "%prog [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 [DC|RODC|MEMBER|SUBDOMAIN] [options]" + synopsis = "%prog [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]" + synopsis = "%prog (show|raise ) [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 [options]" + synopsis = "%prog [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]" + synopsis = "%prog (show|set ) [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] " + synopsis = "%prog [options] " takes_optiongroups = { "sambaopts": options.SambaOptions, -- cgit