add -h arg for help
authorIan Kelling <ian@iankelling.org>
Wed, 16 Nov 2016 18:10:38 +0000 (10:10 -0800)
committerIan Kelling <ian@iankelling.org>
Wed, 16 Nov 2016 18:10:38 +0000 (10:10 -0800)
lnf

diff --git a/lnf b/lnf
index 1e11bfd..2518c1c 100755 (executable)
--- 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