diff options
author | Doug Hellmann <doug@doughellmann.com> | 2018-04-25 09:48:24 -0400 |
---|---|---|
committer | Doug Hellmann <doug@doughellmann.com> | 2018-04-25 11:41:49 -0400 |
commit | ed3c79e45289a73e5645be316ef9e39b08bb79c9 (patch) | |
tree | 1ceb0165b9337d016a8c494a2025470be5e87050 | |
parent | b07a524a29c9f3281d86c434298491b996b8fc59 (diff) | |
download | git-review-ed3c79e45289a73e5645be316ef9e39b08bb79c9.tar.gz |
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>
-rwxr-xr-x | git_review/cmd.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/git_review/cmd.py b/git_review/cmd.py index b06b06d..a456b43 100755 --- a/git_review/cmd.py +++ b/git_review/cmd.py @@ -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", |