Browse Source

Make saturnin-ln more "helpful" on bad syntax

Alois Mahdal 9 years ago
parent
commit
b93cac83d7
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/libexec/saturnin-ln

+ 2
- 0
src/libexec/saturnin-ln View File

45
 while true; do case $1 in
45
 while true; do case $1 in
46
     -f|--force)         FORCE=true;         shift   ;;
46
     -f|--force)         FORCE=true;         shift   ;;
47
     -t|--target)        target=$2           shift 2 ;;
47
     -t|--target)        target=$2           shift 2 ;;
48
+    --help)             usage                       ;;
49
+    -*)                 usage                       ;;
48
     "")                 usage                       ;;
50
     "")                 usage                       ;;
49
     *)                  src=$1; name=$2;    break   ;;
51
     *)                  src=$1; name=$2;    break   ;;
50
 esac done
52
 esac done