mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 11:30:37 +02:00
add more -h|--h|--help|-help|?
This commit is contained in:
parent
16015d5abc
commit
73de7f47c0
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ _DIR="${2}"
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case ${1} in
|
case ${1} in
|
||||||
-name=*|--name=*) NAME="$(echo "${1}" | rg -o '=(.*)' -r '$1')" ;;
|
-name=*|--name=*) NAME="$(echo "${1}" | rg -o '=(.*)' -r '$1')" ;;
|
||||||
-h|--h|?) _usage ;;
|
-h|--h|-help|--help|?) _usage ;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
|
@ -43,7 +43,7 @@ while [ $# -gt 0 ]; do
|
||||||
_abort "Unable to write to path!" "${1}"
|
_abort "Unable to write to path!" "${1}"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
-h) _usage
|
-h|--h|-help|--help|?) _usage
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
|
|
Loading…
Reference in a new issue