expand help for --download option

Show the syntax for requesting a specific version of a patch.

Change-Id: Id72935c715a7b5c17722400dde6175b99e61860b
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-04-25 09:48:24 -04:00
parent b07a524a29
commit ed3c79e452
1 changed files with 5 additions and 2 deletions

View File

@ -1438,10 +1438,13 @@ def _main():
fetch.set_defaults(download=False, compare=False, cherrypickcommit=False,
cherrypickindicate=False, cherrypickonly=False)
fetch.add_argument("-d", "--download", dest="changeidentifier",
action=DownloadFlag, metavar="CHANGE",
action=DownloadFlag, metavar="CHANGE[,PS]",
const="download",
help="Download the contents of an existing gerrit "
"review into a branch")
"review into a branch. Include the patchset "
"number to download a specific version of the "
"change. The default is to take the most recent "
"version.")
fetch.add_argument("-x", "--cherrypick", dest="changeidentifier",
action=DownloadFlag, metavar="CHANGE",
const="cherrypickcommit",