print the executable name correctly

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-01-09 04:30:11 -08:00
parent 8f5d223b36
commit 9d39c2dbcb
2 changed files with 3 additions and 2 deletions

View File

@ -29,8 +29,8 @@ var customUsage = func() {
fmt.Println("")
fmt.Println("EXAMPLES:")
fmt.Println("")
fmt.Println("seascape-shader --width 1024 --height 768 --drift .1 --filename shaders/seascape.glsl")
fmt.Println("seascape-shader --width 640 --height 480 --filename shaders/planetfall.glsl")
fmt.Println(os.Args[0] + " --width 1024 --height 768 --drift .1 --filename shaders/seascape.glsl")
fmt.Println(os.Args[0] + " --width 640 --height 480 --filename shaders/planetfall.glsl")
fmt.Println("")
}

View File

@ -72,6 +72,7 @@ func run() {
}
func main() {
// This parses the command line arguments
parseFlags()
pixelgl.Run(run)