summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/netcmd/testparm.py
diff options
context:
space:
mode:
authorGiampaolo Lauria <lauria2@yahoo.com>2011-07-15 12:07:03 -0400
committerAndrew Tridgell <tridge@samba.org>2011-07-21 10:32:24 +1000
commitf6fa8684896b8f3f9f8b7bd3742c99906973274c (patch)
tree633d65aa65aac5ee2d0ae431f549f970c10f4aa7 /source4/scripting/python/samba/netcmd/testparm.py
parent1dfcb019d2dcca1d21ec32ee05bf7da15ca84e9f (diff)
downloadsamba-f6fa8684896b8f3f9f8b7bd3742c99906973274c.tar.gz
samba-f6fa8684896b8f3f9f8b7bd3742c99906973274c.tar.xz
samba-f6fa8684896b8f3f9f8b7bd3742c99906973274c.zip
samba-tool: moved takes_optiongroups definition to Command base class
The option groups should be defined at the Command base class level as they are in common across all samba-tool commands. Major move advantages: 1. more OOP approach 2. enforcing consistency across commands 3. avoiding the need of declaring for every new command Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4/scripting/python/samba/netcmd/testparm.py')
-rwxr-xr-xsource4/scripting/python/samba/netcmd/testparm.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/source4/scripting/python/samba/netcmd/testparm.py b/source4/scripting/python/samba/netcmd/testparm.py
index ec448588ef9..7a0e538ca29 100755
--- a/source4/scripting/python/samba/netcmd/testparm.py
+++ b/source4/scripting/python/samba/netcmd/testparm.py
@@ -4,6 +4,7 @@
# Unix SMB/CIFS implementation.
# Test validity of smb.conf
# Copyright (C) Karl Auer 1993, 1994-1998
+# Copyright Giampaolo Lauria 2011 <lauria2@yahoo.com>
#
# Extensively modified by Andrew Tridgell, 1995
# Converted to popt by Jelmer Vernooij (jelmer@nl.linux.org), 2002
@@ -45,11 +46,6 @@ class cmd_testparm(Command):
synopsis = ""
- takes_optiongroups = {
- "sambaopts": options.SambaOptions,
- "versionopts": options.VersionOptions
- }
-
takes_options = [
Option("--section-name", type=str,
help="Limit testparm to a named section"),