mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-16 21:56:40 -05:00
cmd: adapt: Set config filename so it can be hidden (fixes #2974)
This commit is contained in:
parent
64f0173948
commit
99e2b56519
1 changed files with 1 additions and 0 deletions
|
@ -431,6 +431,7 @@ func cmdAdaptConfig(fl Flags) (int, error) {
|
||||||
if adaptCmdPrettyFlag {
|
if adaptCmdPrettyFlag {
|
||||||
opts["pretty"] = "true"
|
opts["pretty"] = "true"
|
||||||
}
|
}
|
||||||
|
opts["filename"] = adaptCmdInputFlag
|
||||||
|
|
||||||
adaptedConfig, warnings, err := cfgAdapter.Adapt(input, opts)
|
adaptedConfig, warnings, err := cfgAdapter.Adapt(input, opts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue