Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ac1694b

Browse files
Added usage menu
1 parent 1fa4ad5 commit ac1694b

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

main.go

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,21 @@ func main() {
1616
setup.LinuxSetup()
1717
}
1818

19-
if len(os.Args) != 2 {
20-
fmt.Println("usage: ./turbo-scanner <host>")
21-
return
19+
if runtime.GOOS == "windows" {
20+
if len(os.Args) != 2 {
21+
fmt.Println("usage: turbo-scanner_010.exe <host>")
22+
return
23+
}
24+
} else if runtime.GOOS == "darwin" {
25+
if len(os.Args) != 2 {
26+
fmt.Println("usage: ./turbo-scanner_010 <host>")
27+
return
28+
}
29+
} else if runtime.GOOS == "linux" {
30+
if len(os.Args) != 2 {
31+
fmt.Println("usage: sudo ./turbo-scanner_010 <host>")
32+
return
33+
}
2234
}
2335

2436
host := os.Args[1]

0 commit comments

Comments
 (0)