diff --git a/cmd/commandfuncs.go b/cmd/commandfuncs.go index 422b63a4..0fd7786a 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 {