package main import ( "fmt" "os" ) func main() { if len(os.Args) < 2 { usage() os.Exit(1) } switch os.Args[1] { case "tags": runTags(os.Args[2:]) default: usage() os.Exit(1) } } func usage() { fmt.Fprintf(os.Stderr, `Usage: clerk [options] Commands: tags Generate ctags-compatibletag file. `) }