summaryrefslogtreecommitdiff
path: root/modules/caddyhttp
diff options
context:
space:
mode:
authorKévin Dunglas <kevin@dunglas.fr>2023-10-10 22:57:18 +0200
committerGitHub <noreply@github.com>2023-10-10 20:57:18 +0000
commitfa5a579b6063617d12948860da109cdb8ca63185 (patch)
tree4d8557f04c7f09034f0de52599c266206bb8e4fc /modules/caddyhttp
parent88b4fbf2444481a68af3ce86843cf6e3bb84c136 (diff)
fileserver: Add command shortcuts `-l` and `-a` (#5854)
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r--modules/caddyhttp/fileserver/command.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddyhttp/fileserver/command.go b/modules/caddyhttp/fileserver/command.go
index 895c4f0..d46c204 100644
--- a/modules/caddyhttp/fileserver/command.go
+++ b/modules/caddyhttp/fileserver/command.go
@@ -55,10 +55,10 @@ respond with a file listing.`,
CobraFunc: func(cmd *cobra.Command) {
cmd.Flags().StringP("domain", "d", "", "Domain name at which to serve the files")
cmd.Flags().StringP("root", "r", "", "The path to the root of the site")
- cmd.Flags().StringP("listen", "", "", "The address to which to bind the listener")
+ cmd.Flags().StringP("listen", "l", "", "The address to which to bind the listener")
cmd.Flags().BoolP("browse", "b", false, "Enable directory browsing")
cmd.Flags().BoolP("templates", "t", false, "Enable template rendering")
- cmd.Flags().BoolP("access-log", "", false, "Enable the access log")
+ cmd.Flags().BoolP("access-log", "a", false, "Enable the access log")
cmd.Flags().BoolP("debug", "v", false, "Enable verbose debug logs")
cmd.RunE = caddycmd.WrapCommandFuncForCobra(cmdFileServer)
cmd.AddCommand(&cobra.Command{