Show help without reporting errors.

This commit is contained in:
Howard Wu 2022-08-31 00:23:41 +08:00
parent 5d608e3a86
commit c0fb8f1d2b

View File

@ -94,6 +94,7 @@ usage(){
default default
if [ "$1" ]; then if [ "$1" ]; then
echo "ERROR: $1" echo "ERROR: $1"
abort
fi fi
echo "Usage: echo "Usage:
--arch Architecture of WSA, x64 or arm64, default: $ARCH --arch Architecture of WSA, x64 or arm64, default: $ARCH
@ -108,7 +109,7 @@ usage(){
--magisk-custom Install custom Magisk, default: false --magisk-custom Install custom Magisk, default: false
--debug Debug build mode, default: false --debug Debug build mode, default: false
" "
abort exit 0
} }
ARGUMENT_LIST=( ARGUMENT_LIST=(