summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-10-08 12:50:33 +0200
committerStefan Metzmacher <metze@samba.org>2012-10-08 16:13:06 +0200
commit309434a77396680b5a40985157da44aaddb5ca71 (patch)
tree7476bc9fe4694f5a7f5a5b991a634a83a3dac4de /source4
parent2fce71c89af66c1467f0a18b97e237b307387620 (diff)
downloadsamba-309434a77396680b5a40985157da44aaddb5ca71.tar.gz
samba-309434a77396680b5a40985157da44aaddb5ca71.tar.bz2
samba-309434a77396680b5a40985157da44aaddb5ca71.zip
s4:samba-tool: allow 'samba-tool --version'
metze
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/netcmd/main.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/netcmd/main.py b/source4/scripting/python/samba/netcmd/main.py
index 5ffeef0ec2..af3abfd0d3 100644
--- a/source4/scripting/python/samba/netcmd/main.py
+++ b/source4/scripting/python/samba/netcmd/main.py
@@ -17,6 +17,8 @@
"""The main samba-tool command implementation."""
+from samba import getopt as options
+
from samba.netcmd import SuperCommand
from samba.netcmd.dbcheck import cmd_dbcheck
from samba.netcmd.delegation import cmd_delegation
@@ -41,6 +43,10 @@ from samba.netcmd.vampire import cmd_vampire
class cmd_sambatool(SuperCommand):
"""Main samba administration tool."""
+ takes_optiongroups = {
+ "versionopts": options.VersionOptions,
+ }
+
subcommands = {}
subcommands["dbcheck"] = cmd_dbcheck()
subcommands["delegation"] = cmd_delegation()