mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
Fix: empty usage message with undefined flag
This commit is contained in:
parent
f67e46cb1b
commit
5a96b37980
@ -14,6 +14,9 @@ import (
|
||||
|
||||
// Execute excute the commands
|
||||
func Execute() {
|
||||
flag.Usage = func() {
|
||||
PrintUsage(os.Stderr, RootCommand)
|
||||
}
|
||||
flag.Parse()
|
||||
args := flag.Args()
|
||||
if len(args) < 1 {
|
||||
|
Loading…
Reference in New Issue
Block a user