瀏覽代碼

Capture -h and --help to show usage.

master
Chris McCormick 6 年之前
父節點
當前提交
550288534d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      gitnonymous-setup

+ 1
- 1
gitnonymous-setup 查看文件

20
 configfile="${confdir}/config"
20
 configfile="${confdir}/config"
21
 sshwrapperfile="${confdir}/git-ssh-wrap"
21
 sshwrapperfile="${confdir}/git-ssh-wrap"
22
 
22
 
23
-if [ "$1" = "" ]
23
+if [ "$1" = "" -o '-h' = "$1" -o '--help' = "$1" ]
24
 then
24
 then
25
   echo "Usage: $0 KEYNAME"
25
   echo "Usage: $0 KEYNAME"
26
 else
26
 else

Loading…
取消
儲存