You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
495 B

  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. }