提交 85d58f9c 编写于 作者: M Mislav Marohnić

Clarify some other long-form CLI options

上级 258b7009
......@@ -15,10 +15,10 @@ var cmdBrowse = &Command{
Long: `Open a GitHub repository in a web browser.
## Options:
-u
-u, --url
Print the URL instead of opening it.
-c
-c, --copy
Put the URL in clipboard instead of opening it.
[<USER>/]<REPOSITORY>
......@@ -52,8 +52,8 @@ var (
)
func init() {
cmdBrowse.Flag.BoolVarP(&flagBrowseURLPrint, "url-only", "u", false, "URL")
cmdBrowse.Flag.BoolVarP(&flagBrowseURLCopy, "copy-only", "c", false, "COPY")
cmdBrowse.Flag.BoolVarP(&flagBrowseURLPrint, "url", "u", false, "URL")
cmdBrowse.Flag.BoolVarP(&flagBrowseURLCopy, "copy", "c", false, "COPY")
CmdRunner.Use(cmdBrowse)
}
......
......@@ -16,7 +16,7 @@ var cmdCiStatus = &Command{
Long: `Display status of GitHub checks for a commit.
## Options:
-v
-v, --verbose
Print detailed report of all status checks and their URLs.
<COMMIT>
......
......@@ -16,7 +16,7 @@ var cmdCompare = &Command{
Long: `Open a GitHub compare page in a web browser.
## Options:
-u
-u, --url
Print the URL instead of opening it.
-c, --copy
......@@ -56,7 +56,7 @@ var (
func init() {
cmdCompare.Flag.BoolVarP(&flagCompareCopy, "copy", "c", false, "COPY")
cmdCompare.Flag.BoolVarP(&flagCompareURLOnly, "url-only", "u", false, "URL only")
cmdCompare.Flag.BoolVarP(&flagCompareURLOnly, "url", "u", false, "URL only")
cmdCompare.Flag.StringVarP(&flagCompareBase, "base", "b", "", "BASE")
CmdRunner.Use(cmdCompare)
......
......@@ -17,7 +17,7 @@ var cmdCreate = &Command{
Long: `Create a new repository on GitHub and add a git remote for it.
## Options:
-p
-p, --private
Create a private repository.
-d, --description=<DESCRIPTION>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册