浏览代码

Catch invalid argument for usage error

Alois Mahdal 7 年前
父节点
当前提交
b4473f06f4
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      src/libexec/dottum-install

+ 1
- 0
src/libexec/dottum-install 查看文件

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 "$@"