1
0
Fork 0

Change c flag to w [SKIP CI]

main
Ambrose Chua 2018-04-02 12:19:49 +08:00
parent 4abfe30f53
commit 335c24d55c
1 changed files with 4 additions and 4 deletions

View File

@ -12,13 +12,13 @@ volumes=""
show_help() {
cat << EOF
Usage: ${0##*/} [-hxc] [-n NAME] [-p PORT]... [-v LIST]... [CMD]...
Usage: ${0##*/} [-hxw] [-n NAME] [-p PORT]... [-v LIST]... [CMD]...
Starts an env Docker container. If CMD is specified, starts CMD
instead of a shell.
-h display this help and exit
-x delete Docker container after exit. will loose data
-c forward \$PWD into $CONTAINER_HOME/src
-w forward \$PWD into $CONTAINER_HOME/src
-n NAME give container a NAME
-p PORT forward host PORT to container PORT
-v LIST mount volume LIST. specify as LOCAL:MOUNT
@ -26,12 +26,12 @@ instead of a shell.
EOF
}
while getopts "hxcn:p:v:" opt; do
while getopts "hxwn:p:v:" opt; do
case "$opt" in
x)
delete="--rm "
;;
c)
w)
volumes="$volumes\n\t-v $PWD:$CONTAINER_HOME/src "
;;
n)