summaryrefslogtreecommitdiff
path: root/cmd/dmap/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dmap/main.go')
-rw-r--r--cmd/dmap/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/dmap/main.go b/cmd/dmap/main.go
index 33ace65..e6665ee 100644
--- a/cmd/dmap/main.go
+++ b/cmd/dmap/main.go
@@ -60,7 +60,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, "dmap")