This allows specifying what repository to use for the container. Signed-off-by: Natanael Copa <nc...@alpinelinux.org> --- templates/lxc-alpine.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in index 7787e75..87886f5 100644 --- a/templates/lxc-alpine.in +++ b/templates/lxc-alpine.in @@ -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;; --*=*) -- 1.8.0.3 ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 _______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel