ソースを参照

Extend usage message with info on config and logging

Alois Mahdal 4 年 前
コミット
645885eb2a
共有1 個のファイルを変更した11 個の追加3 個の削除を含む
  1. 11
    3
      bin/notifirc

+ 11
- 3
bin/notifirc ファイルの表示

@@ -7,9 +7,17 @@ usage() {
7 7
     #
8 8
     local self      # our name
9 9
     self=$(basename "$0")
10
-    echo "usage: $self [options] message" >&2
11
-    echo "usage: $self [options] [-l max_lines] [-L max_width] -f message_file|-" >&2
12
-    echo "options: [-h host] [-p port] [-n nick] [-c context] [-u user]" >&2
10
+    {
11
+        echo "usage: $self [options] message"
12
+        echo "usage: $self [options] [-l max_lines] [-L max_width] -f message_file|-"
13
+        echo "options: [-h host] [-p port] [-n nick] [-c context] [-u user]"
14
+        echo ""
15
+        echo "Defaults for options can be defined as POSIX shell assignments under"
16
+        echo "/etc/notifirc.rc or ~/.notifirc.rc. (E.g. 'nick=jdoe', 'max_width=40')."
17
+        echo ""
18
+        echo "All is logged under /var/log/notifirc.log, ~/.notifirc.log, or"
19
+        echo "/tmp/notifirc.log, whichever $self can write to."
20
+    } >&2
13 21
     exit 2
14 22
 }
15 23