This commit is contained in:
Stephen McQuay 2020-02-03 17:07:23 -08:00
commit ba9f6d4cc5
Signed by: sm
GPG Key ID: C383C74875475AC8

33
main.go Normal file
View File

@ -0,0 +1,33 @@
package main
import (
"flag"
"fmt"
"os"
)
var vers = flag.Bool("version", false, "print version")
func main() {
flag.Parse()
if *vers {
fmt.Println("2.02.0")
os.Exit(0)
}
switch arg := flag.Arg(0); arg {
case "when":
fmt.Println("April 15th, 2020, 7-11PM")
case "where":
fmt.Println("Art Boutiki\n44 Race St.\nSan Jose, CA")
case "who":
fmt.Println("Employees on stage\nFriends/family in the audience")
case "fineprint":
when := "February 3rd"
fmt.Printf("8 bands\n$100/band\nsignup begins %v\nPayment due at signup\n", when)
default:
fmt.Fprintf(os.Stderr, "botb: unknown subcommand %v\n", arg)
os.Exit(1)
}
}