| 1 | package main |
| 2 | |
| 3 | import ( |
| 4 | "github.com/docopt/docopt-go/examples" |
| 5 | ) |
| 6 | |
| 7 | func Example() { |
| 8 | examples.TestUsage(usage, "counted -vvvvvvvvvv") |
| 9 | examples.TestUsage(usage, "counted go go") |
| 10 | examples.TestUsage(usage, "counted --path ./here --path ./there") |
| 11 | examples.TestUsage(usage, "counted this.txt that.txt") |
| 12 | // Output: |
| 13 | // --help false |
| 14 | // --path [] |
| 15 | // -v 10 |
| 16 | // <file> [] |
| 17 | // go 0 |
| 18 | // |
| 19 | // --help false |
| 20 | // --path [] |
| 21 | // -v 0 |
| 22 | // <file> [] |
| 23 | // go 2 |
| 24 | // |
| 25 | // --help false |
| 26 | // --path [./here ./there] |
| 27 | // -v 0 |
| 28 | // <file> [] |
| 29 | // go 0 |
| 30 | // |
| 31 | // --help false |
| 32 | // --path [] |
| 33 | // -v 0 |
| 34 | // <file> [this.txt that.txt] |
| 35 | // go 0 |
| 36 | } |