Make help handler a one-liner
This commit is contained in:
parent
5bb0271e31
commit
931b8f2db8
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user