]> spindle.queued.net Git - xodist/commitdiff
add --help/-h support to all scripts
authorAndres Salomon <dilinger@collabora.co.uk>
Mon, 1 Jun 2009 20:25:33 +0000 (16:25 -0400)
committerAndres Salomon <dilinger@collabora.co.uk>
Mon, 1 Jun 2009 20:25:33 +0000 (16:25 -0400)
Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
mkchroot.sh
mkext3.sh
mkjffs2.sh

index 7867a8ac582adca82b7bc9ec7024fce9d6f24b13..df9d8e7e2a414630f2df89c520da31fe71518dd6 100755 (executable)
@@ -32,6 +32,7 @@ usage()
        echo "" 1>&2
        echo "Options:" 1>&2
        echo "  --config-type <config>    directory name in configs/ to use" 1>&2
+       echo "  --help                    display this help screen" 1>&2
        echo "  --local-apt-mirror <srcs> 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
index 37cec9949073629476083c3f6ccc41f55a3648c0..2960e275335110ad2d9ed51892918e2e128483b3 100755 (executable)
--- a/mkext3.sh
+++ b/mkext3.sh
@@ -214,6 +214,7 @@ usage()
        echo "" 1>&2
        echo "Options:" 1>&2
        echo "  --config-type <config>    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
index 99573d477554b4cd1a01a07a9f3f00f6c1225a15..7d907f76b25d6cf679f50cf02cb3424224920bb0 100755 (executable)
@@ -27,6 +27,7 @@ usage()
        echo "" 1>&2
        echo "Options:" 1>&2
        echo "  --config-type <config>    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