From f952b86bbb84b15e77b3a2a7769d56eeda97a650 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Wed, 11 Jan 2023 04:25:47 +0300 Subject: ota-upload: add --help --- ota-upload.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ota-upload.sh') diff --git a/ota-upload.sh b/ota-upload.sh index cc47fdb..accfc23 100755 --- a/ota-upload.sh +++ b/ota-upload.sh @@ -34,6 +34,7 @@ usage() { Options: --root DIR LineageOS root + -h, --help show this help _EOF exit 1 @@ -42,8 +43,12 @@ usage() { ROOT= DEVICE= +[ -z "$1" ] && usage while [[ $# -gt 0 ]]; do case $1 in + -h|--help) + usage + ;; --root) ROOT="$2" shift -- cgit v1.2.3