Skip to content

Commit fa5a579

Browse files
authored
fileserver: Add command shortcuts -l and -a (#5854)
1 parent 88b4fbf commit fa5a579

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/caddyhttp/fileserver/command.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ respond with a file listing.`,
5555
CobraFunc: func(cmd *cobra.Command) {
5656
cmd.Flags().StringP("domain", "d", "", "Domain name at which to serve the files")
5757
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")
5959
cmd.Flags().BoolP("browse", "b", false, "Enable directory browsing")
6060
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")
6262
cmd.Flags().BoolP("debug", "v", false, "Enable verbose debug logs")
6363
cmd.RunE = caddycmd.WrapCommandFuncForCobra(cmdFileServer)
6464
cmd.AddCommand(&cobra.Command{

0 commit comments

Comments
 (0)