summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-01-11 04:25:47 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-01-11 04:25:47 +0300
commitf952b86bbb84b15e77b3a2a7769d56eeda97a650 (patch)
treeafb50e219ba1d01a586c29a40144bfc8699ca096
parentb9a43f2309a6a867e3366dd1cf26702dfd87c661 (diff)
ota-upload: add --help
-rwxr-xr-xota-upload.sh5
1 files changed, 5 insertions, 0 deletions
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