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
This commit is contained in:
Antoine Musso 2024-01-24 12:09:50 +01:00
parent 3fbead8637
commit 0502235d55
1 changed files with 1 additions and 1 deletions

View File

@ -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")