counted_example.go 495 B

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