summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-01-12 18:20:19 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2020-01-12 18:20:19 -0700
commit99e2b56519b89237a28dd176c4eb0604d1cf5297 (patch)
tree35c9e5a3631b8849af0e9c5429e1ed67da0a9b86
parent64f0173948e9b87a8f898d451ef35daefedf2c50 (diff)
cmd: adapt: Set config filename so it can be hidden (fixes #2974)
-rw-r--r--cmd/commandfuncs.go1
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 {