samba-tool: save --color choice for subcommands
commitbaf7c5c585de35a01699a1b0e18bbb339c14afa0
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 9 Sep 2022 02:38:18 +0000 (9 14:38 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 16 Sep 2022 05:46:36 +0000 (16 05:46 +0000)
tree9b95fce196a2d44ebef3ca53af48155aa84277fb
parent5dd4696fb792cff37534eccb943be66cdd9e544c
samba-tool: save --color choice for subcommands

In particular, visualize needs it to decide colour for an output
file that may or may not be stdout, so it needs to make its own
decision for that file.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/__init__.py