ota-upload: add --help
This commit is contained in:
parent
b9a43f2309
commit
f952b86bbb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user