add show option

This commit is contained in:
Henrique Dias 2016-08-28 10:29:05 +01:00
parent 3e9cb873b3
commit cf13ceeb60

View File

@ -128,12 +128,6 @@ func parse(c *caddy.Controller, root string) (*Config, *filemanager.FileManager,
cfg.Args = append(cfg.Args, "--"+values[0]+"="+value) cfg.Args = append(cfg.Args, "--"+values[0]+"="+value)
default: default:
if c.Val() == "show" {
fmt.Println("Option 'show' is not allowed here.")
c.NextArg()
continue
}
line := "\n\t" + c.Val() line := "\n\t" + c.Val()
if c.NextArg() { if c.NextArg() {