Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 12, 22:00 UTC
fileserver: Add command shortcuts `-l` and `-a` (#5854)
Kévin Dunglas committed
Oct 10, 2023 at 22:57 UTC
fa5a579b6063617d12948860da109cdb8ca63185
1 file changed
+2
-2
modules/caddyhttp/fileserver/command.go
+2
-2
@@ -55,10 +55,10 @@ respond with a file listing.`,
55
CobraFunc: func(cmd *cobra.Command) {
56
cmd.Flags().StringP("domain", "d", "", "Domain name at which to serve the files")
57
cmd.Flags().StringP("root", "r", "", "The path to the root of the site")
58
- cmd.Flags().StringP("listen", "", "", "The address to which to bind the listener")
58
+ cmd.Flags().StringP("listen", "l", "", "The address to which to bind the listener")
59
cmd.Flags().BoolP("browse", "b", false, "Enable directory browsing")
60
cmd.Flags().BoolP("templates", "t", false, "Enable template rendering")
61
- cmd.Flags().BoolP("access-log", "", false, "Enable the access log")
61
+ cmd.Flags().BoolP("access-log", "a", false, "Enable the access log")
62
cmd.Flags().BoolP("debug", "v", false, "Enable verbose debug logs")
63
cmd.RunE = caddycmd.WrapCommandFuncForCobra(cmdFileServer)
64
cmd.AddCommand(&cobra.Command{