From: Ian Kelling Date: Wed, 16 Nov 2016 18:10:38 +0000 (-0800) Subject: add -h arg for help X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=df814ed22cf0dfb2f93cc4c228099d36c40b6fae;p=lnf add -h arg for help --- diff --git a/lnf b/lnf index 1e11bfd..2518c1c 100755 --- a/lnf +++ b/lnf @@ -17,7 +17,7 @@ In the 1st form, create a link to TARGET with the name LINK_NAME. In the 2nd form, create a link to TARGET in the current directory. In the 3rd form, create links to each TARGET in DIRECTORY." - if [[ $1 == --help || $# -eq 0 ]]; then + if [[ $1 == --help || $1 == -h || $# -eq 0 ]]; then echo "$help" return 0 fi