@@ -12,7 +12,7 @@ func main() {
1212 port := flag .Uint ("port" , 6379 , "The port of redis" )
1313 password := flag .String ("password" , "" , "The password of redis" )
1414 rdb := flag .String ("rdb" , "" , "The rdb file of redis" )
15- prefixes := flag .String ("prefixes" , "#, :" , "The prefixes list of redis key, be split by ', ', special pattern characters need to escape by '\\ '" )
15+ prefixes := flag .String ("prefixes" , "#// :" , "The prefixes list of redis key, be split by '// ', special pattern characters need to escape by '\\ '" )
1616 reportPath := flag .String ("reportPath" , "./reports" , "The csv file path of analysis result" )
1717
1818 flag .Parse ()
@@ -25,15 +25,15 @@ func main() {
2525 fmt .Println ("something wrong:" , err )
2626 return
2727 }
28- analysis .StartRDB (strings .Split (* prefixes , ", " ))
28+ analysis .StartRDB (strings .Split (* prefixes , "// " ))
2929 } else {
3030 err := analysis .Open (* ip , uint16 (* port ), * password )
3131 defer analysis .Close ()
3232 if err != nil {
3333 fmt .Println ("something wrong:" , err )
3434 return
3535 }
36- analysis .Start (strings .Split (* prefixes , ", " ))
36+ analysis .Start (strings .Split (* prefixes , "// " ))
3737 }
3838 analysis .SaveReports (* reportPath )
3939
0 commit comments