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

samba-tool: Expanded acronym descriptions

Expanded command acronym descriptions
Added footnote for "server connection needed"

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Giampaolo Lauria
2011-08-02 13:50:15 -04:00
committed by Andrew Bartlett
parent ef01932fdb
commit ca30b9ff3e
9 changed files with 9 additions and 8 deletions

View File

@ -165,6 +165,7 @@ class SuperCommand(Command):
max_length = len(max(subcmds, key=len)) max_length = len(max(subcmds, key=len))
for cmd in subcmds: for cmd in subcmds:
print " %*s - %s" % (-max_length, cmd, self.subcommands[cmd].description) print " %*s - %s" % (-max_length, cmd, self.subcommands[cmd].description)
print " * server connection needed"
if subcommand in [None]: if subcommand in [None]:
raise CommandError("You must specify a subcommand") raise CommandError("You must specify a subcommand")
if subcommand in ['help', '-h', '--help']: if subcommand in ['help', '-h', '--help']:

View File

@ -228,7 +228,7 @@ class cmd_delegation_del_service(Command):
raise CommandError(err) raise CommandError(err)
class cmd_delegation(SuperCommand): class cmd_delegation(SuperCommand):
"""Delegation management [server connection needed]""" """Delegation management *"""
subcommands = {} subcommands = {}
subcommands["show"] = cmd_delegation_show() subcommands["show"] = cmd_delegation_show()

View File

@ -477,7 +477,7 @@ class cmd_drs_options(Command):
class cmd_drs(SuperCommand): class cmd_drs(SuperCommand):
"""DRS commands""" """Directory Replication Services (DRS) management"""
subcommands = {} subcommands = {}
subcommands["bind"] = cmd_drs_bind() subcommands["bind"] = cmd_drs_bind()

View File

@ -33,7 +33,7 @@ from samba.netcmd import (
from samba.samdb import SamDB from samba.samdb import SamDB
class cmd_fsmo(Command): class cmd_fsmo(Command):
"""Manage flexible single master (FSMO) roles [server connection needed]""" """Flexible Single Master Operations (FSMO) roles management *"""
synopsis = "(show | transfer <options> | seize <options>)" synopsis = "(show | transfer <options> | seize <options>)"

View File

@ -956,7 +956,7 @@ class cmd_create(Command):
class cmd_gpo(SuperCommand): class cmd_gpo(SuperCommand):
"""Group Policy Object (GPO) commands""" """Group Policy Object (GPO) management"""
subcommands = {} subcommands = {}
subcommands["listall"] = cmd_listall() subcommands["listall"] = cmd_listall()

View File

@ -104,7 +104,7 @@ class cmd_rodc_preload(Command):
class cmd_rodc(SuperCommand): class cmd_rodc(SuperCommand):
"""RODC commands""" """Read-Only Domain Controller (RODC) management"""
subcommands = {} subcommands = {}
subcommands["preload"] = cmd_rodc_preload() subcommands["preload"] = cmd_rodc_preload()

View File

@ -192,7 +192,7 @@ class cmd_spn_delete(Command):
raise CommandError("Service principal %s not affected" % name) raise CommandError("Service principal %s not affected" % name)
class cmd_spn(SuperCommand): class cmd_spn(SuperCommand):
"""SPN management [server connection needed]""" """Service Principal Name (SPN) management *"""
subcommands = {} subcommands = {}
subcommands["add"] = cmd_spn_add() subcommands["add"] = cmd_spn_add()

View File

@ -28,7 +28,7 @@ from samba.netcmd import (
) )
class cmd_time(Command): class cmd_time(Command):
"""Retrieve the time on a remote server [server connection needed]""" """Retrieve the time on a remote server *"""
synopsis = "%prog time <server-name>" synopsis = "%prog time <server-name>"
takes_args = ["server_name?"] takes_args = ["server_name?"]

View File

@ -287,7 +287,7 @@ class cmd_user_setpassword(Command):
class cmd_user(SuperCommand): class cmd_user(SuperCommand):
"""User management [server connection needed]""" """User management *"""
subcommands = {} subcommands = {}
subcommands["add"] = cmd_user_add() subcommands["add"] = cmd_user_add()