From: Urban Wallasch Date: Wed, 10 Apr 2019 11:55:35 +0000 (+0200) Subject: * Renamed -l command line flag to -D. X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=5060131393b978c79a533bbcf3684de3b734c78b;p=gogopherd.git * Renamed -l command line flag to -D. --- diff --git a/README.md b/README.md index bef1629..b1de47d 100644 --- 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 ``` diff --git a/config.go b/config.go index b0ee4bc..129ee8a 100644 --- 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")