From: Stefan Metzmacher Date: Mon, 8 Oct 2012 10:50:33 +0000 (+0200) Subject: s4:samba-tool: allow 'samba-tool --version' X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=309434a77396680b5a40985157da44aaddb5ca71;p=obnox%2Fsamba%2Fsamba-obnox.git s4:samba-tool: allow 'samba-tool --version' metze --- diff --git a/source4/scripting/python/samba/netcmd/main.py b/source4/scripting/python/samba/netcmd/main.py index 5ffeef0ec26..af3abfd0d39 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()