瀏覽代碼

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 年之前
父節點
當前提交
667ab4aeea
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/saturnin.sh.skel

+ 1
- 1
src/saturnin.sh.skel 查看文件

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