mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-30 22:34:15 -05:00
cmd: adapt: Default --adapter value is "caddyfile"
This commit is contained in:
parent
8c55167f71
commit
bc3e44c1a6
1 changed files with 2 additions and 2 deletions
|
@ -181,7 +181,7 @@ config file; otherwise the default is assumed.`,
|
|||
"adapt": {
|
||||
Name: "adapt",
|
||||
Func: cmdAdaptConfig,
|
||||
Usage: "--config <path> --adapter <name> [--pretty] [--validate]",
|
||||
Usage: "--config <path> [--adapter <name>] [--pretty] [--validate]",
|
||||
Short: "Adapts a configuration to Caddy's native JSON",
|
||||
Long: `
|
||||
Adapts a configuration to Caddy's native JSON format and writes the
|
||||
|
@ -196,7 +196,7 @@ zero exit status will be returned.`,
|
|||
Flags: func() *flag.FlagSet {
|
||||
fs := flag.NewFlagSet("adapt", flag.ExitOnError)
|
||||
fs.String("config", "", "Configuration file to adapt (required)")
|
||||
fs.String("adapter", "", "Name of config adapter (required)")
|
||||
fs.String("adapter", "caddyfile", "Name of config adapter")
|
||||
fs.Bool("pretty", false, "Format the output for human readability")
|
||||
fs.Bool("validate", false, "Validate the output")
|
||||
return fs
|
||||
|
|
Loading…
Reference in a new issue