Make help handler a one-liner

This commit is contained in:
2023-04-19 02:15:57 +02:00
parent 5bb0271e31
commit 931b8f2db8

View File

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