瀏覽代碼

Return 1 on unrecognized option

master
Arun Prakash Jana 6 年之前
父節點
當前提交
8cba83f43f
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: A75979F35C080412
共有 1 個檔案被更改,包括 4 行新增2 行删除
  1. +4
    -2
      src/nnn.c

+ 4
- 2
src/nnn.c 查看文件

@@ -3437,7 +3437,6 @@ static void usage(void)
" -v show program version\n"
" -h show this help\n\n"
"Version: %s\n%s\n", VERSION, GENERAL_INFO);
exit(0);
}

int main(int argc, char *argv[])
@@ -3494,9 +3493,12 @@ int main(int argc, char *argv[])
case 'v':
fprintf(stdout, "%s\n", VERSION);
return 0;
case 'h': // fallthrough
case 'h':
usage();
return 0;
default:
usage();
exit(1);
}
}



||||||
x
 
000:0
Loading…
取消
儲存