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, 04:00 UTC
caddycmd: fix caddy validate/fmt help message (#4377)
* caddycmd: fix caddy validate help message Fixes #4376 * caddycmd: fix caddy fmt help message
M. Ángel Jimeno committed
Oct 11, 2021 at 17:56 UTC
be5f77e84da941d32eb1b873d355bfc1a186304b
1 file changed
+2
-2
cmd/commands.go
+2
-2
@@ -259,7 +259,7 @@ Loads and provisions the provided config, but does not start running it.
259
This reveals any errors with the configuration through the loading and
260
provisioning stages.`,
261
Flags: func() *flag.FlagSet {
262
- fs := flag.NewFlagSet("load", flag.ExitOnError)
262
+ fs := flag.NewFlagSet("validate", flag.ExitOnError)
263
fs.String("config", "", "Input configuration file")
264
fs.String("adapter", "", "Name of config adapter")
265
return fs
@@ -282,7 +282,7 @@ If you wish you use stdin instead of a regular file, use - as the path.
282
When reading from stdin, the --overwrite flag has no effect: the result
283
is always printed to stdout.`,
284
Flags: func() *flag.FlagSet {
285
- fs := flag.NewFlagSet("format", flag.ExitOnError)
285
+ fs := flag.NewFlagSet("fmt", flag.ExitOnError)
286
fs.Bool("overwrite", false, "Overwrite the input file with the results")
287
return fs
288
}(),