From: Douglas Bagnall Date: Fri, 9 Sep 2022 02:50:13 +0000 (+1200) Subject: samba-tool drs showrepl: use global --color option X-Git-Tag: talloc-2.4.0~972 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d4387d15dff755a57724d4df5e25b75ae5bee6b;p=thirdparty%2Fsamba.git samba-tool drs showrepl: use global --color option This changes the default from --color=no to --color=auto. Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/netcmd/drs.py b/python/samba/netcmd/drs.py index 2262eaf62d9..6a4063a91d6 100644 --- a/python/samba/netcmd/drs.py +++ b/python/samba/netcmd/drs.py @@ -92,7 +92,6 @@ class cmd_drs_showrepl(Command): """Show replication status.""" synopsis = "%prog [] [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)