File tree 1 file changed +14
-3
lines changed
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ function print_help() {
5
5
$( basename " ${BASH_SOURCE[0]} " ) : Update the Ubuntu image location in the specified templates
6
6
7
7
Usage:
8
- $( basename " ${BASH_SOURCE[0]} " ) [--minimal|--server] [--version <version>] <template.yaml>...
8
+ $( basename " ${BASH_SOURCE[0]} " ) [--flavor <flavor>|-- minimal|--server] [--version <version>] <template.yaml>...
9
9
10
10
Description:
11
11
This script updates the Ubuntu image location in the specified templates.
@@ -32,8 +32,9 @@ Examples:
32
32
$ $( basename " ${BASH_SOURCE[0]} " ) --minimal --version 24.04 ~/.lima/docker/lima.yaml
33
33
34
34
Flags:
35
- --server Use the server flavor image
36
- --minimal Use the minimal flavor image
35
+ --flavor <flavor> Use the specified flavor image
36
+ --server Shortcut for --flavor server
37
+ --minimal Shortcut for --flavor minimal
37
38
--version <version> Use the specified version
38
39
-h, --help Print this help message
39
40
HELP
@@ -186,6 +187,16 @@ while [[ $# -gt 0 ]]; do
186
187
print_help
187
188
exit 0
188
189
;;
190
+ --flavor)
191
+ if [[ -n $2 && $2 != -* ]]; then
192
+ flavor=" $2 "
193
+ shift
194
+ else
195
+ echo " Error: --flavor requires a value" >&2
196
+ exit 1
197
+ fi
198
+ ;;
199
+ --flavor=* ) flavor=" ${1#* =} " ;;
189
200
--minimal) flavor=" minimal" ;;
190
201
--server) flavor=" server" ;;
191
202
--version)
You can’t perform that action at this time.
0 commit comments