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