* Renamed -l command line flag to -D.
authorUrban Wallasch <urban.wallasch@freenet.de>
Wed, 10 Apr 2019 11:55:35 +0000 (13:55 +0200)
committerUrban Wallasch <urban.wallasch@freenet.de>
Wed, 10 Apr 2019 11:55:35 +0000 (13:55 +0200)
README.md
config.go

index bef1629624b62a01e33ffe49c9500ed8ab61b785..b1de47d19a69d22589eba27f39085fc9c7cc5739 100644 (file)
--- a/README.md
+++ b/README.md
@@ -35,15 +35,21 @@ The `gogopherd` executable recognizes the following command line
 options:
 
 ```
+  -D
+      allow generated directory indexes
+
   -F string
-      footer page to append to generated pages
+      footer file to append to generated pages
 
   -H string
-      header page to prepend to generated pages
+      header file to prepend to generated pages
 
   -I string
       directory index page (default "index.goph")
 
+  -L string
+      write log to file; empty for stderr
+
   -c string
       configuration file
 
@@ -57,10 +63,7 @@ options:
       show this help page
 
   -i string
-      interface to bind to (default "localhost")
-
-  -l
-      allow directory listings
+      interface to bind to; empty for any (default "localhost")
 
   -p string
       TCP port to listen on (default "7070")
@@ -74,9 +77,6 @@ options:
   -t int
       connection read/write timeout in seconds (default 60)
 
-  -L string
-      write log to file; empty for stderr
-
   -v
       produce verbose output
 ```
index b0ee4bc88b32488baafe3ffefc68af72d9f7bc70..129ee8a0109c1ffc75b2b5cbfffe5a53dd6fd6ed 100644 (file)
--- a/config.go
+++ b/config.go
@@ -115,7 +115,7 @@ func initialize() {
        flag.BoolVar(&help, "h", help, "show this help page")
        flag.BoolVar(&cfg.fsymln, "s", cfg.fsymln, "follow symbolic links")
        flag.BoolVar(&cfg.showdot, "d", cfg.showdot, "allow access to dotfiles")
-       flag.BoolVar(&cfg.indexes, "l", cfg.indexes, "allow generated directory indexes")
+       flag.BoolVar(&cfg.indexes, "D", cfg.indexes, "allow generated directory indexes")
        flag.IntVar(&cfg.timeout, "t", cfg.timeout, "connection read/write timeout in seconds")
        flag.StringVar(&cfg.logfile, "L", cfg.logfile, "write log to file; empty for stderr")
        flag.BoolVar(&cfg.verbose, "v", cfg.verbose, "produce verbose output")