]> git.wh0rd.org Git - home.git/commitdiff
custom-chroot: support --help
authorMike Frysinger <vapier@gentoo.org>
Sun, 15 Jun 2014 01:44:49 +0000 (21:44 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sun, 15 Jun 2014 01:44:49 +0000 (21:44 -0400)
.bin/custom-chroot

index 66613bcfd7b09d02a0111fd6926893b2e416b1cf..8a3fc619c763c8d0eaad824284082d63db06d6e1 100755 (executable)
@@ -110,7 +110,7 @@ main() {
                -u) cmd='umount' ;;
                -m) mounts+=( "$2" ); shift ;;
                -d) chroot=$(realpath "$2"); shift ;;
-               -h) usage ;;
+               --help|-h) usage ;;
                -*) echo "${0##*/}: unknown option $1"; exit 1 ;;
                *)  break ;;
                esac