12345678910111213141516171819202122 |
- package main
- import (
- "fmt"
- "github.com/docopt/docopt-go"
- )
- func main() {
- usage := `Usage: counted_example --help
- counted_example -v...
- counted_example go [go]
- counted_example (--path=<path>)...
- counted_example <file> <file>
- Try: counted_example -vvvvvvvvvv
- counted_example go go
- counted_example --path ./here --path ./there
- counted_example this.txt that.txt`
- arguments, _ := docopt.Parse(usage, nil, true, "", false)
- fmt.Println(arguments)
- }
|