Make help handler a one-liner

This commit is contained in:
Michael De Roover 2023-04-19 02:15:57 +02:00
parent 5bb0271e31
commit 931b8f2db8
Signed by: vim
GPG Key ID: 075496E232CE04CB

View File

@ -9,9 +9,7 @@ help(){
exit 1
}
[ -z "$1" ] && help
[ "$1" == "-h" ] && help
[ "$1" == "--help" ] && help
[[ -z "$1" || "$1" == "-h" || "$1" == "--help" ]] && help
saveifs=$IFS
IFS=$'\n'