mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-14 20:39:36 +03:00
Style: format code by gofumpt (#761)
This commit is contained in:
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:]...)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user