print the executable name correctly
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
8f5d223b36
commit
9d39c2dbcb
|
@ -29,8 +29,8 @@ var customUsage = func() {
|
||||||
fmt.Println("")
|
fmt.Println("")
|
||||||
fmt.Println("EXAMPLES:")
|
fmt.Println("EXAMPLES:")
|
||||||
fmt.Println("")
|
fmt.Println("")
|
||||||
fmt.Println("seascape-shader --width 1024 --height 768 --drift .1 --filename shaders/seascape.glsl")
|
fmt.Println(os.Args[0] + " --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 640 --height 480 --filename shaders/planetfall.glsl")
|
||||||
fmt.Println("")
|
fmt.Println("")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,7 @@ func run() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
// This parses the command line arguments
|
||||||
parseFlags()
|
parseFlags()
|
||||||
|
|
||||||
pixelgl.Run(run)
|
pixelgl.Run(run)
|
||||||
|
|
Loading…
Reference in New Issue