| 1 | package main |
| 2 | |
| 3 | import ( |
| 4 | "fmt" |
| 5 | "github.com/docopt/docopt-go" |
| 6 | ) |
| 7 | |
| 8 | var usage = `Usage: counted --help |
| 9 | counted -v... |
| 10 | counted go [go] |
| 11 | counted (--path=<path>)... |
| 12 | counted <file> <file> |
| 13 | |
| 14 | Try: counted -vvvvvvvvvv |
| 15 | counted go go |
| 16 | counted --path ./here --path ./there |
| 17 | counted this.txt that.txt` |
| 18 | |
| 19 | func main() { |
| 20 | arguments, _ := docopt.ParseDoc(usage) |
| 21 | fmt.Println(arguments) |
| 22 | } |