23 lines
406 B
Go
Raw Normal View History

2021-12-04 16:42:11 +00:00
package main
import (
"fmt"
"github.com/docopt/docopt-go"
)
var usage = `Usage: counted --help
counted -v...
counted go [go]
counted (--path=<path>)...
counted <file> <file>
Try: counted -vvvvvvvvvv
counted go go
counted --path ./here --path ./there
counted this.txt that.txt`
func main() {
arguments, _ := docopt.ParseDoc(usage)
fmt.Println(arguments)
}