1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-25 00:59:11 +03:00

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>
This commit is contained in:
Giampaolo Lauria
2011-07-25 11:56:10 -04:00
committed by Andrew Tridgell
parent 2e082853fb
commit 41f073eb60
7 changed files with 32 additions and 19 deletions

View File

@ -90,7 +90,8 @@ class cmd_listall(Command):
synopsis = "%prog gpo listall"
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")
]
def run(self, H=None, sambaopts=None,
@ -134,7 +135,8 @@ class cmd_list(Command):
takes_args = [ 'username' ]
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")
]
def run(self, username, H=None, sambaopts=None,