提交 fb6ec12a 编写于 作者: J Jingwen Owen Ou

Use -d for pull request head flag

-h is reserved for help
上级 e08e6793
......@@ -16,7 +16,7 @@ import (
var cmdPr = &Command{
Run: pr,
Usage: "pr [-f] [i ISSUE] [-b BASE] [-h HEAD] [TITLE]",
Usage: "pr [-f] [-i ISSUE] [-b BASE] [-d HEAD] [TITLE]",
Short: "Open a pull request on GitHub",
Long: `Opens a pull request on GitHub for the project that the "origin" remote
points to. The default head of the pull request is the current branch.
......@@ -39,7 +39,7 @@ var flagPullRequestBase, flagPullRequestHead, flagPullRequestIssue string
func init() {
cmdPr.Flag.StringVar(&flagPullRequestBase, "b", "master", "BASE")
cmdPr.Flag.StringVar(&flagPullRequestHead, "h", "", "HEAD")
cmdPr.Flag.StringVar(&flagPullRequestHead, "d", "", "HEAD")
cmdPr.Flag.StringVar(&flagPullRequestIssue, "i", "", "ISSUE")
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册