package main import ( _ "embed" "flag" "fmt" "os" ) var ( //go:embed LICENSE license string printLicense bool ) func init() { flag.BoolVar(&printLicense, "license", false, "Print license") } func tryLicense() { if printLicense { fmt.Println(license) os.Exit(0) } }