242 B
242 B
Miscelanious plumbing functions
Detect version command, print version, and exit
--- handle version command
if len(os.Args) > 1 && os.Args[1] == "version" {
fmt.Println("Keyboard version: @{version}")
os.Exit(0)
}
---