summaryrefslogtreecommitdiff
path: root/cmd/dcat/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dcat/main.go')
-rw-r--r--cmd/dcat/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/dcat/main.go b/cmd/dcat/main.go
index df580c4..64c6f10 100644
--- a/cmd/dcat/main.go
+++ b/cmd/dcat/main.go
@@ -54,7 +54,8 @@ func main() {
config.Setup(source.Client, &args, flag.Args())
if displayVersion {
- version.PrintAndExit()
+ runtimeCfg := config.CurrentRuntime()
+ version.PrintAndExit(runtimeCfg.Client != nil && runtimeCfg.Client.TermColorsEnable)
}
runtime := cli.NewClientRuntime(context.Background(), profileFlags, "dcat")