summaryrefslogtreecommitdiff
path: root/cmd/commands.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-10-06 20:48:09 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2019-10-06 20:48:09 -0600
commitbc3e44c1a6b16ec5a01c43888fd53264a9f6abad (patch)
tree9619d16309f26046686e2b1a1357fec8a9dcf567 /cmd/commands.go
parent8c55167f71eefc9ee693e0d83750126f7700cb6e (diff)
cmd: adapt: Default --adapter value is "caddyfile"
Diffstat (limited to 'cmd/commands.go')
-rw-r--r--cmd/commands.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/commands.go b/cmd/commands.go
index 7473053..10fb3e7 100644
--- a/cmd/commands.go
+++ b/cmd/commands.go
@@ -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