Fix `issue create --assign LIST` and documentation

This commit is contained in:
Mislav Marohnić 2019-01-18 05:13:19 +01:00
Родитель 80a8fe31f9
Коммит 22fc159d0b
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -39,10 +39,10 @@ With no arguments, show a list of open issues.
## Options:
-a, --assignee=<ASSIGNEE>
Display only issues assigned to <ASSIGNEE>.
In list mode, display only issues assigned to <ASSIGNEE>.
When opening an issue, this can be a comma-separated list of people to
assign to the new issue.
-a, --assign=<USERS>
A comma-separated list of GitHub handles to assign to the created issue.
-c, --creator=<CREATOR>
Display only issues created by <CREATOR>.
@ -184,7 +184,7 @@ hub-pr(1), hub(1)
-F, --file FILE
-M, --milestone M
-l, --labels LIST
-a, --assignee USER
-a, --assign USER
-o, --browse
-c, --copy
-e, --edit
@ -541,7 +541,7 @@ text is the title and the rest is the description.`, project))
params["labels"] = flagIssueLabels
}
flagIssueAssignees := commaSeparated(args.Flag.AllValues("--assignee"))
flagIssueAssignees := commaSeparated(args.Flag.AllValues("--assign"))
if len(flagIssueAssignees) > 0 {
params["assignees"] = flagIssueAssignees
}

Просмотреть файл

@ -343,7 +343,7 @@ Feature: hub issue
json :html_url => "https://github.com/github/hub/issues/1337"
}
"""
When I successfully run `hub issue create -m "hello" -M 12 -a mislav,josh -apcorpet`
When I successfully run `hub issue create -m "hello" -M 12 --assign mislav,josh -apcorpet`
Then the output should contain exactly:
"""
https://github.com/github/hub/issues/1337\n