cmd: adapt: Set config filename so it can be hidden (fixes #2974)

This commit is contained in:
Matthew Holt 2020-01-12 18:20:19 -07:00
parent 64f0173948
commit 99e2b56519
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5

View File

@ -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 {