fix short param
This commit is contained in:
@ -19,8 +19,8 @@ func printHelp() {
|
||||
output.Println("Options:")
|
||||
output.Println(" -j, --jobs N allow N jobs at once")
|
||||
output.Println(" -o, --output MODE self|proxy|all|quiet")
|
||||
output.Println(" -dt, --deny-time TIME minimum ip deny TIME (seconds)")
|
||||
output.Println(" -mc, --max-connections N Skip N connections before run deny script")
|
||||
output.Println(" -t, --deny-time TIME minimum ip deny TIME (seconds)")
|
||||
output.Println(" -c, --max-connections N Skip N connections before run deny script")
|
||||
output.Println(" -v, --version Show version")
|
||||
output.Println(" -h, --help Show help")
|
||||
}
|
||||
@ -38,10 +38,10 @@ func parseArgs() config.Config {
|
||||
gnuflag.StringVar(&rawCfg.OutputMode, "o", "", "")
|
||||
gnuflag.StringVar(&rawCfg.OutputMode, "output", "", "")
|
||||
|
||||
gnuflag.UintVar(&rawCfg.DenyTime, "dt", 0, "")
|
||||
gnuflag.UintVar(&rawCfg.DenyTime, "t", 0, "")
|
||||
gnuflag.UintVar(&rawCfg.DenyTime, "deny-time", 0, "")
|
||||
|
||||
gnuflag.UintVar(&rawCfg.MaxConn, "mc", 0, "")
|
||||
gnuflag.UintVar(&rawCfg.MaxConn, "c", 0, "")
|
||||
gnuflag.UintVar(&rawCfg.MaxConn, "max-connections", 0, "")
|
||||
|
||||
gnuflag.BoolVar(&rawCfg.ShowVersion, "v", false, "")
|
||||
|
Reference in New Issue
Block a user