From: Andres Salomon Date: Mon, 1 Jun 2009 20:25:33 +0000 (-0400) Subject: add --help/-h support to all scripts X-Git-Tag: v0.6~52 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a46758729c4558f051ef5c467ad1088243c31921;p=xodist add --help/-h support to all scripts Signed-off-by: Andres Salomon --- diff --git a/mkchroot.sh b/mkchroot.sh index 7867a8a..df9d8e7 100755 --- a/mkchroot.sh +++ b/mkchroot.sh @@ -32,6 +32,7 @@ usage() echo "" 1>&2 echo "Options:" 1>&2 echo " --config-type directory name in configs/ to use" 1>&2 + echo " --help display this help screen" 1>&2 echo " --local-apt-mirror sources.list for local mirror" 1>&2 echo "" 1>&2 exit 1 @@ -52,6 +53,9 @@ do LOCAL_APT_MIRROR="$2" shift ;; + --help|-h) + usage + ;; *) if [ "$#" != "1" ]; then echo "Unknown option $1" 1>&2 diff --git a/mkext3.sh b/mkext3.sh index 37cec99..2960e27 100755 --- a/mkext3.sh +++ b/mkext3.sh @@ -214,6 +214,7 @@ usage() echo "" 1>&2 echo "Options:" 1>&2 echo " --config-type directory name in configs/ to use" 1>&2 + echo " --help display this help screen" 1>&2 echo "" 1>&2 exit 1 } @@ -229,6 +230,9 @@ do } shift ;; + --help|-h) + usage + ;; *) ROOT_DIR="$1" shift diff --git a/mkjffs2.sh b/mkjffs2.sh index 99573d4..7d907f7 100755 --- a/mkjffs2.sh +++ b/mkjffs2.sh @@ -27,6 +27,7 @@ usage() echo "" 1>&2 echo "Options:" 1>&2 echo " --config-type directory name in configs/ to use" 1>&2 + echo " --help display this help screen" 1>&2 echo "" 1>&2 exit 1 } @@ -42,6 +43,9 @@ do } shift ;; + --help|-h) + usage + ;; *) if [ "$#" != "2" ]; then echo "Unknown option $1" 1>&2