package git import ( "fmt" "github.com/docopt/docopt-go" ) func main() { usage := `usage: git remote [-v | --verbose] git remote add [-t ] [-m ] [-f] [--mirror] git remote rename git remote rm git remote set-head (-a | -d | ) git remote [-v | --verbose] show [-n] git remote prune [-n | --dry-run] git remote [-v | --verbose] update [-p | --prune] [( | )...] git remote set-branches [--add] ... git remote set-url [] git remote set-url --add git remote set-url --delete options: -v, --verbose be verbose; must be placed before a subcommand ` args, _ := docopt.Parse(usage, nil, true, "", false) fmt.Println(args) }