Browse Source

Make use of usage errors from newer pretty.sh

Alois Mahdal 5 years ago
parent
commit
afc7ad59ef
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/libexec/dottum-install

+ 2
- 2
src/libexec/dottum-install View File

@@ -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=("$@")