Przeglądaj źródła

Fix bad usage of usage message generator

(Irony not intended...)

Error message was passed as usage pattern, ie. calling invalid subcommand
such as:

    mytool nonesuch

would result in usage message like:

    usage:
      mytool invalid sub-command: nonesuch
      mytool [options] COMMAND [ARG...]

    [...]
Alois Mahdal 6 lat temu
rodzic
commit
667ab4aeea
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      src/saturnin.sh.skel

+ 1
- 1
src/saturnin.sh.skel Wyświetl plik

@@ -481,7 +481,7 @@ saturnin__runsc() {
481 481
     debug -v binpath
482 482
     debug "\$*='$*'"
483 483
     test -x "$binpath" \
484
-     || saturnin__usage "invalid sub-command: $subcommand"
484
+     || saturnin__usage -w "invalid sub-command: $subcommand"
485 485
     SATURNIN_SUBCOMMAND="$subcommand" "$binpath" "$@"
486 486
 }
487 487