@marcel91200 / caddy Mirror · read-only / commits / bc3e44c1
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

cmd: adapt: Default --adapter value is "caddyfile"

Matthew Holt committed Oct 6, 2019 at 20:48 UTC bc3e44c1a6b16ec5a01c43888fd53264a9f6abad
1 file changed +2 -2
cmd/commands.go
+2 -2
@@ -181,7 +181,7 @@ config file; otherwise the default is assumed.`,
181 "adapt": {
182 Name: "adapt",
183 Func: cmdAdaptConfig,
184 - Usage: "--config <path> --adapter <name> [--pretty] [--validate]",
184 + Usage: "--config <path> [--adapter <name>] [--pretty] [--validate]",
185 Short: "Adapts a configuration to Caddy's native JSON",
186 Long: `
187 Adapts a configuration to Caddy's native JSON format and writes the
@@ -196,7 +196,7 @@ zero exit status will be returned.`,
196 Flags: func() *flag.FlagSet {
197 fs := flag.NewFlagSet("adapt", flag.ExitOnError)
198 fs.String("config", "", "Configuration file to adapt (required)")
199 - fs.String("adapter", "", "Name of config adapter (required)")
199 + fs.String("adapter", "caddyfile", "Name of config adapter")
200 fs.Bool("pretty", false, "Format the output for human readability")
201 fs.Bool("validate", false, "Validate the output")
202 return fs