samba-tool: moved takes_optiongroups definition to Command base class
[samba.git] / source4 / scripting / python / samba / netcmd / newuser.py
index 3581340577b501e79043dff656ebbd07f93fef9f..68a66f6e55fb9449c050d0681a9d5974efc466df 100644 (file)
@@ -5,6 +5,7 @@
 #
 # Based on the original in EJS:
 # Copyright Andrew Tridgell 2005
+# 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
@@ -32,12 +33,6 @@ class cmd_newuser(Command):
 
     synopsis = "newuser [options] <username> [<password>]"
 
-    takes_optiongroups = {
-        "sambaopts": options.SambaOptions,
-        "versionopts": options.VersionOptions,
-        "credopts": options.CredentialsOptions,
-    }
-
     takes_options = [
         Option("-H", help="LDB URL for database or target server", type=str),
         Option("--must-change-at-next-login",