diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2020-01-12 18:20:19 -0700 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2020-01-12 18:20:19 -0700 |
commit | 99e2b56519b89237a28dd176c4eb0604d1cf5297 (patch) | |
tree | 35c9e5a3631b8849af0e9c5429e1ed67da0a9b86 /cmd | |
parent | 64f0173948e9b87a8f898d451ef35daefedf2c50 (diff) |
cmd: adapt: Set config filename so it can be hidden (fixes #2974)
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/commandfuncs.go | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |