summaryrefslogtreecommitdiff
path: root/ota-upload.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ota-upload.sh')
-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