Style: format code by gofumpt (#761)

This commit is contained in:
yuhan6665 2021-10-19 12:57:14 -04:00 committed by GitHub
parent d77be80b40
commit e286cdcaa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
111 changed files with 293 additions and 291 deletions

View file

@ -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:]...)
}