lxc-alpine: add --repository option

This allows specifying what repository to use for the container.

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Natanael Copa 2012-12-31 20:49:17 +01:00 committed by Stéphane Graber
parent b1aa0624ba
commit e5846a6f89

View File

@ -119,7 +119,10 @@ die() {
}
usage() {
echo "Usage: $(basename $0) [-h|--help] -p|--path <path> -n|--name <name>" >&2
cat >&2 <<EOF
Usage: $(basename $0) [-h|--help] [-r|--repository <url>]
-p|--path <path> -n|--name <name>
EOF
}
usage_err() {
@ -153,6 +156,11 @@ while [ $# -gt 0 ]; do
path=$1
shift
;;
-r|--repository)
optarg_check $opt "$1"
repository=$1
shift
;;
--)
break;;
--*=*)