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>
}
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() {
path=$1
shift
;;
+ -r|--repository)
+ optarg_check $opt "$1"
+ repository=$1
+ shift
+ ;;
--)
break;;
--*=*)