diff options
author | WeidiDeng <[email protected]> | 2024-12-06 05:10:39 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-06 05:10:39 +0800 |
commit | c9faf72444e87727390f28237de50608ce9227fc (patch) | |
tree | cebe801547b8aa7c4c26bee5c6ec1e040ffee892 /cmd/commands.go | |
parent | 182153e827fb36cdc80280c1118fbaed8084366d (diff) | |
parent | a1751adb40fbd2369c044a7fe16ab17e0fdce334 (diff) | |
download | caddy-reverse-proxy-h2-websocket.tar.gz caddy-reverse-proxy-h2-websocket.zip |
Merge branch 'master' into reverse-proxy-h2-websocketreverse-proxy-h2-websocket
Diffstat (limited to 'cmd/commands.go')
-rw-r--r-- | cmd/commands.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/commands.go b/cmd/commands.go index ebb57690c..259dd358f 100644 --- a/cmd/commands.go +++ b/cmd/commands.go @@ -388,6 +388,7 @@ When reading from stdin, the --overwrite flag has no effect: the result is always printed to stdout. `, CobraFunc: func(cmd *cobra.Command) { + cmd.Flags().StringP("config", "c", "", "Configuration file") cmd.Flags().BoolP("overwrite", "w", false, "Overwrite the input file with the results") cmd.Flags().BoolP("diff", "d", false, "Print the differences between the input file and the formatted output") cmd.RunE = WrapCommandFuncForCobra(cmdFmt) |