diff --git a/cmd/main.go b/cmd/main.go index 4da77c5..658d244 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -4,7 +4,7 @@ import ( "flag" "fmt" "net/http" - "runtime" + "os" "github.com/ap-pauloafonso/ratio-spoof/emulation" "github.com/ap-pauloafonso/ratio-spoof/ratiospoof" @@ -24,15 +24,7 @@ func main() { debug := flag.Bool("debug", false, "") flag.Usage = func() { - var osExecutableSuffix string - if runtime.GOOS == "windows" { - fmt.Println(`usage: - ratio-spoof.exe -t -d -ds -u -us `, osExecutableSuffix) - } else { - fmt.Println(`usage: - ./ratio-spoof -t -d -ds -u -us `, osExecutableSuffix) - } - + fmt.Printf("usage: %s -t -d -ds -u -us \n", os.Args[0]) fmt.Print(` optional arguments: -h show this help message and exit