Add --help and --version options

Resolves issue #409
This commit is contained in:
Dylan M. Taylor 2020-08-24 16:25:04 -04:00 committed by GitHub
parent 1bf3e73373
commit 6ffb263f43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,12 @@ while [ -n "$1" ]; do
RESERVE_SPACE="YES"
shift
RESERVE_SIZE_MB=$1
elif [ "$1" = "--help" ]; then
print_usage
exit 0
elif [ "$1" = "--version" ]; then
echo "Ventoy v1.0.19"
exit 0
else
if ! [ -b "$1" ]; then
vterr "$1 is NOT a valid device"