Fix using all arguments as paths

This commit is contained in:
Jan Bader 2020-11-21 20:26:15 +01:00
parent efac6d266c
commit d8040e8451

View File

@ -27,7 +27,7 @@ func main() {
} else {
filesMap = newFilesMap()
for _, path := range os.Args[1:] {
for _, path := range flag.Args() {
filepath.Walk(path, func(path string, info os.FileInfo, err error) error {
filesMap.Add(path, info)
return nil