aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/commands.go
diff options
context:
space:
mode:
authorWeidiDeng <[email protected]>2024-12-06 05:10:39 +0800
committerGitHub <[email protected]>2024-12-06 05:10:39 +0800
commitc9faf72444e87727390f28237de50608ce9227fc (patch)
treecebe801547b8aa7c4c26bee5c6ec1e040ffee892 /cmd/commands.go
parent182153e827fb36cdc80280c1118fbaed8084366d (diff)
parenta1751adb40fbd2369c044a7fe16ab17e0fdce334 (diff)
downloadcaddy-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.go1
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)