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