@@ -30,7 +30,7 @@ type Options struct {
3030 // 重复请求次数
3131 Retry int
3232 // ip 段
33- IP string
33+ // IP string
3434
3535 // 保存结果
3636 Out string
@@ -43,16 +43,16 @@ func (o Options) toString() interface{} {
4343
4444func ParseOptions () * Options {
4545 options := & Options {}
46- flag .IntVar (& options .Mode , "m" , 6 , "debug mode off ( Infolevel = 0 PanicLevel = 1 FatalLevel = 2 \n " + " \t ErrorLevel = 3 WarnLevel = 4 InfoLevel = 5 DebugLevel = 6 TraceLevel = 7 )" )
46+ flag .IntVar (& options .Mode , "m" , 6 , "debug mode off (debug mode = 6 )" )
4747 flag .IntVar (& options .Thread , "t" , 1 , "threads number " )
48- flag .StringVar (& options .File , "f" , "" , "file to read example: -file=test.txt" )
49- flag .StringVar (& options .Url , "u" , "" , "url to read example: -url=http://www.baidu.com" )
48+ flag .StringVar (& options .File , "f" , "" , "file to read example: -file=test.txt http(s)://host:port/ " )
49+ flag .StringVar (& options .Url , "u" , "" , "url to read example: -url=http://www.baidu.com:80 " )
5050 flag .StringVar (& options .Proxy , "proxy" , "" , "proxy example: -proxy=http://127.0.0.1:8080 or -proxy=socks5://127.0.0.1:1080" )
5151 flag .BoolVar (& options .Version , "version" , false , "show version" )
5252 flag .BoolVar (& options .Verbose , "verbose" , false , "show verbose" )
5353 flag .StringVar (& options .LogFile , "log" , "logs.txt" , "log file example: -log=/logs/logs.txt" )
5454 flag .IntVar (& options .Retry , "retry" , 3 , "repeat request times" )
55- flag .StringVar (& options .IP , "i" , "" , "ip segment example: -ip=192.168.0.1/24 " )
55+ // flag.StringVar(&options.IP, "i", "", "ip segment example: -ip=192.168.0.1/24 ")
5656 flag .IntVar (& options .Timeout , "timeout" , 10 , "timeout" )
5757 flag .StringVar (& options .Out , "o" , "result.txt" , "out file example: -o=result.txt default result.txt" )
5858 flag .Parse ()
@@ -64,10 +64,10 @@ func ParseOptions() *Options {
6464 } else if url := options .Url ; url != "" {
6565 options .Thread = 1
6666 options .File = ""
67-
67+ ShowBanner ( v )
6868 } else if options .File != "" {
6969 options .Url = ""
70-
70+ ShowBanner ( v )
7171 } else {
7272 ShowBanner (v )
7373 flag .PrintDefaults ()
0 commit comments