Make help handler a one-liner
This commit is contained in:
@@ -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'
|
||||||
|
Reference in New Issue
Block a user