package main import ( "fmt" "github.com/docopt/docopt-go" ) func main() { usage := `Usage: quick tcp [--timeout=] quick serial [--baud=9600] [--timeout=] quick -h | --help | --version` arguments, _ := docopt.ParseArgs(usage, nil, "0.1.1rc") fmt.Println(arguments) }