package main import ( "fmt" "github.com/docopt/docopt-go" ) func main() { usage := `Naval Fate. Usage: naval_fate ship new ... naval_fate ship move [--speed=] naval_fate ship shoot naval_fate mine (set|remove) [--moored|--drifting] naval_fate -h | --help naval_fate --version Options: -h --help Show this screen. --version Show version. --speed= Speed in knots [default: 10]. --moored Moored (anchored) mine. --drifting Drifting mine.` arguments, _ := docopt.Parse(usage, nil, true, "Naval Fate 2.0", false) fmt.Println(arguments) }