You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
349 B
Go
21 lines
349 B
Go
//go:build !js || !wasm
|
|
// +build !js !wasm
|
|
|
|
package main
|
|
|
|
import (
|
|
"flag"
|
|
|
|
"code.rocketnine.space/tslocum/commandeuropa/world"
|
|
)
|
|
|
|
func parseFlags() {
|
|
flag.IntVar(&world.Debug, "debug", 0, "print debug information")
|
|
flag.BoolVar(&world.StartMuted, "mute", false, "mute music")
|
|
flag.Parse()
|
|
|
|
if world.Debug > 0 {
|
|
world.ShownIntro = true
|
|
}
|
|
}
|