ota-upload: add --help

This commit is contained in:
Evgeny Zinoviev 2023-01-11 04:25:47 +03:00
parent b9a43f2309
commit f952b86bbb

View File

@ -34,6 +34,7 @@ usage() {
Options: Options:
--root DIR LineageOS root --root DIR LineageOS root
-h, --help show this help
_EOF _EOF
exit 1 exit 1
@ -42,8 +43,12 @@ usage() {
ROOT= ROOT=
DEVICE= DEVICE=
[ -z "$1" ] && usage
while [[ $# -gt 0 ]]; do while [[ $# -gt 0 ]]; do
case $1 in case $1 in
-h|--help)
usage
;;
--root) --root)
ROOT="$2" ROOT="$2"
shift shift