diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2012-02-06 16:33:38 +0100 |
|---|---|---|
| committer | Jelmer Vernooij <jelmer@samba.org> | 2012-02-07 01:11:08 +0100 |
| commit | a0ff4c349c6b75f9e5fa6b4ad0e69a4aa8e471b0 (patch) | |
| tree | f061638bef13c1f55a7444c7dfdf6d7c1995ec16 /source4/scripting/python/samba/netcmd/time.py | |
| parent | d6b47015037cbdebc3cd1c1f352cf7c6109bead3 (diff) | |
| download | samba-a0ff4c349c6b75f9e5fa6b4ad0e69a4aa8e471b0.tar.gz samba-a0ff4c349c6b75f9e5fa6b4ad0e69a4aa8e471b0.tar.bz2 samba-a0ff4c349c6b75f9e5fa6b4ad0e69a4aa8e471b0.zip | |
Revert "samba-tool: moved takes_optiongroups definition to Command base class"
This reverts commit f6fa8684896b8f3f9f8b7bd3742c99906973274c.
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
Diffstat (limited to 'source4/scripting/python/samba/netcmd/time.py')
| -rw-r--r-- | source4/scripting/python/samba/netcmd/time.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/netcmd/time.py b/source4/scripting/python/samba/netcmd/time.py index 966799e7db7..cc63849c058 100644 --- a/source4/scripting/python/samba/netcmd/time.py +++ b/source4/scripting/python/samba/netcmd/time.py @@ -3,7 +3,6 @@ # time # # Copyright Jelmer Vernooij 2010 <jelmer@samba.org> -# Copyright Giampaolo Lauria 2011 <lauria2@yahoo.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -44,6 +43,12 @@ Example2 return the date and time of the local server. """ synopsis = "%prog [server-name] [options]" + takes_optiongroups = { + "sambaopts": options.SambaOptions, + "credopts": options.CredentialsOptions, + "versionopts": options.VersionOptions, + } + takes_args = ["server_name?"] def run(self, server_name=None, credopts=None, sambaopts=None, versionopts=None): |
