git_push.go 989 B

12345678910111213141516171819202122232425262728293031323334
  1. package git
  2. import (
  3. "fmt"
  4. "github.com/docopt/docopt-go"
  5. )
  6. func main() {
  7. usage := `usage: git push [options] [<repository> [<refspec>...]]
  8. options:
  9. -h, --help
  10. -v, --verbose be more verbose
  11. -q, --quiet be more quiet
  12. --repo <repository> repository
  13. --all push all refs
  14. --mirror mirror all refs
  15. --delete delete refs
  16. --tags push tags (can't be used with --all or --mirror)
  17. -n, --dry-run dry run
  18. --porcelain machine-readable output
  19. -f, --force force updates
  20. --thin use thin pack
  21. --receive-pack <receive-pack>
  22. receive pack program
  23. --exec <receive-pack>
  24. receive pack program
  25. -u, --set-upstream set upstream for git pull/status
  26. --progress force progress reporting
  27. `
  28. args, _ := docopt.Parse(usage, nil, true, "", false)
  29. fmt.Println(args)
  30. }