Skip to content

Commit

Permalink
Update Version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Dec 25, 2020
1 parent a01f366 commit f963d08
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ source <(curl -sL https://multi.netlify.app/v2ray.sh) --remove

## 命令行参数
```bash
v2ray/xray [-h|--help] [options]
-h, --help 查看帮助
-v, --version 查看版本号
v2ray/xray [-h|help] [options]
-h, help 查看帮助
-v, version 查看版本号
start 启动 V2Ray
stop 停止 V2Ray
restart 重启 V2Ray
Expand Down
6 changes: 3 additions & 3 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ source <(curl -sL https://multi.netlify.app/v2ray.sh) --remove

## Command Line
```bash
v2ray/xray [-h|--help] [options]
-h, --help get help
-v, --version get version
v2ray/xray [-h|help] [options]
-h, help get help
-v, version get version
start start V2Ray
stop stop V2Ray
restart restart V2Ray
Expand Down
2 changes: 1 addition & 1 deletion v2ray
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# bash completion for v2ray/xray
function _auto_tab() {
local options_array=("start" "stop" "restart" "status" "update" "update.sh" "add" "del" "info" "port" "tls" "tfo" "stream" "iptables" "cdn" "stats" "clean" "log" "new" "rm" "-h" "-v")
local options_array=("start" "stop" "restart" "status" "update" "update.sh" "add" "del" "info" "port" "tls" "tfo" "stream" "iptables" "cdn" "stats" "clean" "log" "new" "rm" "-h" "-v" "help" "version")
local add_array=("wechat" "utp" "srtp" "dtls" "wireguard" "socks" "mtproto" "ss" "vless" "vless_ws" "vless_xtls" "trojan" "ss" "quic" "h2" "tcp" "tcp_host" "ws")
local log_array=("access" "a" "error" "e")
local cur prev
Expand Down
2 changes: 1 addition & 1 deletion v2ray_util/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '3.9.0.1'
__version__ = '3.9.0.2'

import sys
if "xray" in sys.argv[0]:
Expand Down
16 changes: 8 additions & 8 deletions v2ray_util/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ def help():
lang = Config().get_data('lang')
if lang == 'zh':
print("""
{0} [-h|--help] [options]
-h, --help 查看帮助
-v, --version 查看版本号
{0} [-h|help] [options]
-h, help 查看帮助
-v, version 查看版本号
start 启动 {bin}
stop 停止 {bin}
restart 重启 {bin}
Expand All @@ -44,9 +44,9 @@ def help():
""".format(exec_name[exec_name.rfind("/") + 1:], bin=run_type))
else:
print("""
{0} [-h|--help] [options]
-h, --help get help
-v, --version get version
{0} [-h|help] [options]
-h, help get help
-v, version get version
start start {bin}
stop stop {bin}
restart restart {bin}
Expand Down Expand Up @@ -88,9 +88,9 @@ def parse_arg():
V2ray.stop()
elif sys.argv[1] == "restart":
V2ray.restart()
elif sys.argv[1] in ("-h", "--help"):
elif sys.argv[1] in ("-h", "help"):
help()
elif sys.argv[1] in ("-v", "--version"):
elif sys.argv[1] in ("-v", "version"):
V2ray.version()
elif sys.argv[1] == "status":
V2ray.status()
Expand Down

0 comments on commit f963d08

Please sign in to comment.