| 1 | package main |
| 2 | |
| 3 | import ( |
| 4 | "fmt" |
| 5 | "github.com/docopt/docopt-go" |
| 6 | ) |
| 7 | |
| 8 | func main() { |
| 9 | usage := `Usage: |
| 10 | quick tcp <host> <port> [--timeout=<seconds>] |
| 11 | quick serial <port> [--baud=9600] [--timeout=<seconds>] |
| 12 | quick -h | --help | --version` |
| 13 | |
| 14 | arguments, _ := docopt.ParseArgs(usage, nil, "0.1.1rc") |
| 15 | fmt.Println(arguments) |
| 16 | } |