mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 17:38:41 +00:00
Style: format code by gofumpt (#761)
This commit is contained in:
parent
d77be80b40
commit
e286cdcaa8
111 changed files with 293 additions and 291 deletions
18
main/main.go
18
main/main.go
|
@ -37,20 +37,20 @@ func getArgsV4Compatible() []string {
|
|||
fs.SetOutput(&null{})
|
||||
err := fs.Parse(os.Args[1:])
|
||||
if err == flag.ErrHelp {
|
||||
//fmt.Println("DEPRECATED: -h, WILL BE REMOVED IN V5.")
|
||||
//fmt.Println("PLEASE USE: xray help")
|
||||
//fmt.Println()
|
||||
// fmt.Println("DEPRECATED: -h, WILL BE REMOVED IN V5.")
|
||||
// fmt.Println("PLEASE USE: xray help")
|
||||
// fmt.Println()
|
||||
return []string{os.Args[0], "help"}
|
||||
}
|
||||
if version {
|
||||
//fmt.Println("DEPRECATED: -version, WILL BE REMOVED IN V5.")
|
||||
//fmt.Println("PLEASE USE: xray version")
|
||||
//fmt.Println()
|
||||
// fmt.Println("DEPRECATED: -version, WILL BE REMOVED IN V5.")
|
||||
// fmt.Println("PLEASE USE: xray version")
|
||||
// fmt.Println()
|
||||
return []string{os.Args[0], "version"}
|
||||
}
|
||||
//fmt.Println("COMPATIBLE MODE, DEPRECATED.")
|
||||
//fmt.Println("PLEASE USE: xray run [arguments] INSTEAD.")
|
||||
//fmt.Println()
|
||||
// fmt.Println("COMPATIBLE MODE, DEPRECATED.")
|
||||
// fmt.Println("PLEASE USE: xray run [arguments] INSTEAD.")
|
||||
// fmt.Println()
|
||||
return append([]string{os.Args[0], "run"}, os.Args[1:]...)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue