aportgen: Add short forms of arguments (MR 2271)

With --fork-alpine-retain-branch the arguments are getting really long,
so let's add short forms for both to be consistent.
This commit is contained in:
Newbyte 2024-03-11 11:32:37 +01:00 committed by Oliver Smith
parent d63ea90f2b
commit 883be0f119
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -833,10 +833,10 @@ def arguments():
" specific package build recipe" " specific package build recipe"
" (aport/APKBUILD)") " (aport/APKBUILD)")
aportgen_fork_alpine = aportgen.add_mutually_exclusive_group() aportgen_fork_alpine = aportgen.add_mutually_exclusive_group()
aportgen_fork_alpine.add_argument("--fork-alpine", help="fork the alpine upstream" aportgen_fork_alpine.add_argument("-a", "--fork-alpine",
" package", action="store_true", help="fork the alpine upstream package",
dest="fork_alpine") action="store_true", dest="fork_alpine")
aportgen_fork_alpine.add_argument("--fork-alpine-retain-branch", aportgen_fork_alpine.add_argument("-r", "--fork-alpine-retain-branch",
help="fork the alpine upstream, but don't change " help="fork the alpine upstream, but don't change "
"branch to match the current channel", "branch to match the current channel",
action="store_true", action="store_true",