Add --help to CreatePersistentImg.sh

--help should have a return code of 0 in most scripts.
This commit is contained in:
Dylan M. Taylor 2020-08-24 17:10:15 -04:00 committed by GitHub
parent 1bf3e73373
commit d420d370e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,9 @@ while [ -n "$1" ]; do
elif [ "$1" = "-l" ]; then
shift
label=$1
elif [ "$1" = "--help" ]; then
print_usage
exit 0
else
print_usage
exit 1