mirror of
https://github.com/samba-team/samba.git
synced 2025-07-22 16:59:09 +03:00
Revert "samba-tool: moved takes_optiongroups definition to Command base class"
This reverts commit f6fa868489
.
This keeps the main command class fairly slim, and makes it a bit
more obvious where the arguments to run() are coming from.
Conflicts:
source4/scripting/python/samba/netcmd/__init__.py
source4/scripting/python/samba/netcmd/domain.py
source4/scripting/python/samba/netcmd/gpo.py
source4/scripting/python/samba/netcmd/newuser.py
source4/scripting/python/samba/netcmd/testparm.py
source4/scripting/python/samba/netcmd/user.py
source4/scripting/python/samba/tests/samba_tool/__init__.py
This commit is contained in:
@ -4,7 +4,6 @@
|
||||
# Unix SMB/CIFS implementation.
|
||||
# Test validity of smb.conf
|
||||
# Copyright (C) 2010-2011 Jelmer Vernooij <jelmer@samba.org>
|
||||
# Copyright (C) Giampaolo Lauria 2011 <lauria2@yahoo.com>
|
||||
#
|
||||
# Based on the original in C:
|
||||
# Copyright (C) Karl Auer 1993, 1994-1998
|
||||
@ -51,6 +50,11 @@ class cmd_testparm(Command):
|
||||
"versionopts": options.VersionOptions
|
||||
}
|
||||
|
||||
takes_optiongroups = {
|
||||
"sambaopts": options.SambaOptions,
|
||||
"versionopts": options.VersionOptions
|
||||
}
|
||||
|
||||
takes_options = [
|
||||
Option("--section-name", type=str,
|
||||
help="Limit testparm to a named section"),
|
||||
|
Reference in New Issue
Block a user