Sfoglia il codice sorgente

Catch invalid argument for usage error

Alois Mahdal 8 anni fa
parent
commit
b4473f06f4
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1
    0
      src/libexec/dottum-install

+ 1
- 0
src/libexec/dottum-install Vedi File

38
         -n) Action=explore;     shift ;;
38
         -n) Action=explore;     shift ;;
39
         -B) ClobberBroken=false; shift ;;
39
         -B) ClobberBroken=false; shift ;;
40
         -f) ClobberLinks=true;  shift ;;
40
         -f) ClobberLinks=true;  shift ;;
41
+        -*) usage -w "unknown argument: $1" ;;
41
         *)                      break ;;
42
         *)                      break ;;
42
     esac done
43
     esac done
43
     dottum__route "$@"
44
     dottum__route "$@"