]> spindle.queued.net Git - xodist/blobdiff - mkjffs2.sh
add --help/-h support to all scripts
[xodist] / mkjffs2.sh
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