瀏覽代碼

Separate declaration from initialization

Alois Mahdal 7 年之前
父節點
當前提交
79947d9b36
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      bin/notifirc

+ 2
- 1
bin/notifirc 查看文件

@@ -2,7 +2,8 @@
2 2
 
3 3
 
4 4
 usage() {
5
-    local self=$(basename "$0")
5
+    local self      # our name
6
+    self=$(basename "$0")
6 7
     echo "usage: $self [options] message" >&2
7 8
     echo "usage: $self [options] [-l max_lines] [-L max_width] -f message_file|-" >&2
8 9
     echo "options: [-h host] [-p port] [-n nick] [-c context] [-u user]" >&2