From 0502235d55e5a4cba296bc0f565cb230b584ad6d Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Wed, 24 Jan 2024 12:09:50 +0100 Subject: [PATCH] Add --wip as an alias to --work-in-progress Since I am never sure what `-w` would do (maybe it is to raise a warning?) and the long form `--work-in-progress` is a bit too long, add a `--wip` long form option as an alias. That seems to align nicely with Gerrit semantic and the `--ready` option? I can then: ``` git-review --wip git-review --wip git-review --ready ``` Change-Id: I818b45d1186f8ff19ec4c77acd67839df525bc28 --- git_review/cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_review/cmd.py b/git_review/cmd.py index 837bfa75..0b3104bd 100644 --- a/git_review/cmd.py +++ b/git_review/cmd.py @@ -1643,7 +1643,7 @@ additional information: help="Output more information about what's going on") wip_group = parser.add_mutually_exclusive_group() - wip_group.add_argument("-w", "--work-in-progress", dest="wip", + wip_group.add_argument("-w", "--wip", "--work-in-progress", dest="wip", action="store_true", help="Send patch as work in progress for Gerrit " "versions >= 2.15")