From 99e2b56519b89237a28dd176c4eb0604d1cf5297 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sun, 12 Jan 2020 18:20:19 -0700 Subject: cmd: adapt: Set config filename so it can be hidden (fixes #2974) --- cmd/commandfuncs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/commandfuncs.go b/cmd/commandfuncs.go index 422b63a..0fd7786 100644 --- a/cmd/commandfuncs.go +++ b/cmd/commandfuncs.go @@ -431,6 +431,7 @@ func cmdAdaptConfig(fl Flags) (int, error) { if adaptCmdPrettyFlag { opts["pretty"] = "true" } + opts["filename"] = adaptCmdInputFlag adaptedConfig, warnings, err := cfgAdapter.Adapt(input, opts) if err != nil { -- cgit v1.2.3