瀏覽代碼

Make use of usage errors from newer pretty.sh

Alois Mahdal 6 年之前
父節點
當前提交
afc7ad59ef
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/libexec/dottum-install

+ 2
- 2
src/libexec/dottum-install 查看文件

@@ -8,7 +8,7 @@ shellfu import dottum
8 8
 shellfu import saturnin
9 9
 
10 10
 usage() {
11
-    mkusage "[options] VAULT [SUBVAULT]" \
11
+    mkusage "$@" "[options] VAULT [SUBVAULT]" \
12 12
         -o \
13 13
         "-n     Do not do anything, just show what would be done" \
14 14
         "-B     Do not replace broken link"                       \
@@ -18,7 +18,7 @@ usage() {
18 18
 dottum__route() {
19 19
     local Vault=$1; shift
20 20
     local SubVaults=()
21
-    test -n "$Vault" || usage
21
+    test -n "$Vault" || usage -w "no VAULT?"
22 22
     test -e "$Vault" || die "vault does not exist: $Vault"
23 23
     test -d "$Vault" || die "vault is not a directory: $Vault"
24 24
     SubVaults=("$@")