Przeglądaj źródła

Make saturnin-ln more "helpful" on bad syntax

Alois Mahdal 10 lat temu
rodzic
commit
b93cac83d7
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2
    0
      src/libexec/saturnin-ln

+ 2
- 0
src/libexec/saturnin-ln Wyświetl plik

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