Show the usage when the -p/--printresult options are used alone.

This commit is contained in:
Username404-59 2021-02-27 12:55:09 +01:00
parent 2dc9b54e3f
commit f50889ba8b
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,8 @@ if [ "$#" != 0 ]; then
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
usage true
exit 0;
elif [ "$1" = "-p" ] || [ "$1" = "--printresult" ]; then
usage false; exit 0;
elif [ "$1" = "--version" ]; then
run=true
args="$1"