diff options
author | M. Ángel Jimeno <jimen0@users.noreply.github.com> | 2021-10-11 17:56:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 11:56:03 -0400 |
commit | be5f77e84da941d32eb1b873d355bfc1a186304b (patch) | |
tree | 826150eb11d5684ea367f231121ed35a916dfc58 | |
parent | cbb045a121464527d85cce1b56250480b0515f9a (diff) |
caddycmd: fix caddy validate/fmt help message (#4377)
* caddycmd: fix caddy validate help message
Fixes #4376
* caddycmd: fix caddy fmt help message
-rw-r--r-- | cmd/commands.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/commands.go b/cmd/commands.go index ccb82b1..7b184fd 100644 --- a/cmd/commands.go +++ b/cmd/commands.go @@ -259,7 +259,7 @@ Loads and provisions the provided config, but does not start running it. This reveals any errors with the configuration through the loading and provisioning stages.`, Flags: func() *flag.FlagSet { - fs := flag.NewFlagSet("load", flag.ExitOnError) + fs := flag.NewFlagSet("validate", flag.ExitOnError) fs.String("config", "", "Input configuration file") fs.String("adapter", "", "Name of config adapter") return fs @@ -282,7 +282,7 @@ If you wish you use stdin instead of a regular file, use - as the path. When reading from stdin, the --overwrite flag has no effect: the result is always printed to stdout.`, Flags: func() *flag.FlagSet { - fs := flag.NewFlagSet("format", flag.ExitOnError) + fs := flag.NewFlagSet("fmt", flag.ExitOnError) fs.Bool("overwrite", false, "Overwrite the input file with the results") return fs }(), |