mirror of
https://github.com/samba-team/samba.git
synced 2025-12-17 04:23:50 +03:00
samba-tool drs showrepl: use global --color option
This changes the default from --color=no to --color=auto. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
baf7c5c585
commit
7d4387d15d
@@ -92,7 +92,6 @@ class cmd_drs_showrepl(Command):
|
||||
"""Show replication status."""
|
||||
|
||||
synopsis = "%prog [<DC>] [options]"
|
||||
use_colour = False
|
||||
|
||||
takes_optiongroups = {
|
||||
"sambaopts": options.SambaOptions,
|
||||
@@ -118,8 +117,6 @@ class cmd_drs_showrepl(Command):
|
||||
dest='format', action='store_const', const='classic',
|
||||
default=DEFAULT_SHOWREPL_FORMAT),
|
||||
Option("-v", "--verbose", help="Be verbose", action="store_true"),
|
||||
Option("--color", help="Use colour output (yes|no|auto)",
|
||||
default='no'),
|
||||
]
|
||||
|
||||
takes_args = ["DC?"]
|
||||
@@ -185,8 +182,7 @@ class cmd_drs_showrepl(Command):
|
||||
def run(self, DC=None, sambaopts=None,
|
||||
credopts=None, versionopts=None,
|
||||
format=DEFAULT_SHOWREPL_FORMAT,
|
||||
verbose=False, color='no'):
|
||||
self.apply_colour_choice(color)
|
||||
verbose=False):
|
||||
self.lp = sambaopts.get_loadparm()
|
||||
if DC is None:
|
||||
DC = common.netcmd_dnsname(self.lp)
|
||||
|
||||
Reference in New Issue
Block a user