summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/netcmd/domain.py
diff options
context:
space:
mode:
authorGiampaolo Lauria <lauria2@yahoo.com>2011-07-25 11:56:10 -0400
committerAndrew Tridgell <tridge@samba.org>2011-07-28 15:20:51 +1000
commit41f073eb601f83e89bd1d2eba7905fede869a5ae (patch)
tree703446cd60c8aacb61db5f723765e87dfe90c70d /source4/scripting/python/samba/netcmd/domain.py
parent2e082853fbbec127b99e97ea785b564f6aa774d7 (diff)
downloadsamba-41f073eb601f83e89bd1d2eba7905fede869a5ae.tar.gz
samba-41f073eb601f83e89bd1d2eba7905fede869a5ae.tar.xz
samba-41f073eb601f83e89bd1d2eba7905fede869a5ae.zip
samba-tool: add -H or --URL where necessary
To improve consistency, I've made sure all the commands take either a -H or --URL when specifying a URL Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4/scripting/python/samba/netcmd/domain.py')
-rw-r--r--source4/scripting/python/samba/netcmd/domain.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/netcmd/domain.py b/source4/scripting/python/samba/netcmd/domain.py
index 680cfe9d10b..8dffbd2b566 100644
--- a/source4/scripting/python/samba/netcmd/domain.py
+++ b/source4/scripting/python/samba/netcmd/domain.py
@@ -119,7 +119,8 @@ class cmd_domain_level(Command):
synopsis = "%prog domain level (show | raise <options>)"
takes_options = [
- Option("-H", help="LDB URL for database or target server", type=str),
+ Option("-H", "--URL", help="LDB URL for database or target server", type=str,
+ metavar="URL", dest="H"),
Option("--quiet", help="Be quiet", action="store_true"),
Option("--forest", type="choice", choices=["2003", "2008", "2008_R2"],
help="The forest function level (2003 | 2008 | 2008_R2)"),
@@ -335,7 +336,8 @@ class cmd_domain_passwordsettings(Command):
synopsis = "%prog domain passwordsettings (show | set <options>)"
takes_options = [
- Option("-H", help="LDB URL for database or target server", type=str),
+ Option("-H", "--URL", help="LDB URL for database or target server", type=str,
+ metavar="URL", dest="H"),
Option("--quiet", help="Be quiet", action="store_true"),
Option("--complexity", type="choice", choices=["on","off","default"],
help="The password complexity (on | off | default). Default is 'on'"),