Skip to content

Commit e3827e1

Browse files
committed
build-release: Rename --publish-nuget option to -n
I can never remember the long form.
1 parent 1dcd8b7 commit e3827e1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

build-release.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,17 @@ build_classical=1
112112
build_mono=1
113113
publish_nuget=0
114114

115-
while getopts "h?v:t:b:-:" opt; do
115+
while getopts "h?v:t:b:n-:" opt; do
116116
case "$opt" in
117117
h|\?)
118118
echo "Usage: $0 [OPTIONS...]"
119119
echo
120120
echo " -v godot version (e.g: 3.2-stable) [mandatory]"
121121
echo " -t templates version (e.g. 3.2.stable) [mandatory]"
122-
echo " -b all|classical|mono|none (default: all)"
123-
echo " --publish-nuget (default: false)"
122+
echo " -b build target: all|classical|mono|none (default: all)"
123+
echo " -n publish nuget packages (default: false)"
124+
echo " --no-cleanup disable deleting pre-existing output folders (default: false)"
125+
echo " --no-tarball disable generating source tarball (default: false)"
124126
echo
125127
exit 1
126128
;;
@@ -140,6 +142,9 @@ while getopts "h?v:t:b:-:" opt; do
140142
build_mono=0
141143
fi
142144
;;
145+
n)
146+
publish_nuget=1
147+
;;
143148
-)
144149
case "${OPTARG}" in
145150
no-cleanup)
@@ -148,9 +153,6 @@ while getopts "h?v:t:b:-:" opt; do
148153
no-tarball)
149154
make_tarball=0
150155
;;
151-
publish-nuget)
152-
publish_nuget=1
153-
;;
154156
*)
155157
if [ "$OPTERR" == 1 ] && [ "${optspec:0:1}" != ":" ]; then
156158
echo "Unknown option --${OPTARG}."

0 commit comments

Comments
 (0)