package git import ( "fmt" "github.com/docopt/docopt-go" ) func main() { usage := `usage: git clone [options] [--] [] options: -v, --verbose be more verbose -q, --quiet be more quiet --progress force progress reporting -n, --no-checkout don't create a checkout --bare create a bare repository --mirror create a mirror repository (implies bare) -l, --local to clone from a local repository --no-hardlinks don't use local hardlinks, always copy -s, --shared setup as shared repository --recursive initialize submodules in the clone --recurse-submodules initialize submodules in the clone --template directory from which templates will be used --reference reference repository -o, --origin use instead of 'origin' to track upstream -b, --branch checkout instead of the remote's HEAD -u, --upload-pack path to git-upload-pack on the remote --depth create a shallow clone of that depth ` args, _ := docopt.Parse(usage, nil, true, "", false) fmt.Println(args) }