File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ mounts=()
22
22
23
23
usage () {
24
24
echo " Usage:"
25
- echo " $0 [-t] [-v <version>] [-V <SDK version>] [-a <amd64|arm64|all>] [-n <name> ] [-x <script>] [-C <custom-container>] [--rm] [-U] [-m <src>:<dest>] [<container-command>]"
25
+ echo " $0 [-t] [-v <version>] [-V <SDK version>] [-a <amd64|arm64|all>] [-n <name> ] [-x <script>] [-C <custom-container>] [--rm] [-U] [-m <src>:<dest>] [--] [ <container-command>]"
26
26
echo " Start an SDK container of a given SDK release version."
27
27
echo " This will create the container if it does not exist, otherwise start the existing container."
28
28
echo " If the container is already running then it will exec into the container."
@@ -49,6 +49,7 @@ usage() {
49
49
echo " -U Do not update the versionfile. Instead, use the version from the versionfile as-is."
50
50
echo " -m <src>:<dest> - Mount local file or directory inside the container."
51
51
echo " Can be specified multiple times."
52
+ echo " -- Stop parsing options at this point, pass the rest as the container command."
52
53
echo " -h Print this help."
53
54
echo
54
55
}
@@ -72,6 +73,8 @@ while [[ $# -gt 0 ]] ; do
72
73
update_versionfile=
73
74
shift ;;
74
75
-m) mounts+=( -v " $2 " ); shift ; shift ;;
76
+ --) shift ; break ;;
77
+ -* ) echo " Unknown flag ${1@ Q} , use '-h' or '--help' for usage" ; exit 1;;
75
78
* ) break ;;
76
79
esac
77
80
done
You can’t perform that action at this time.
0 commit comments