mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -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
|
// Execute excute the commands
|
||||||
func Execute() {
|
func Execute() {
|
||||||
|
flag.Usage = func() {
|
||||||
|
PrintUsage(os.Stderr, RootCommand)
|
||||||
|
}
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
args := flag.Args()
|
args := flag.Args()
|
||||||
if len(args) < 1 {
|
if len(args) < 1 {
|
||||||
|
Loading…
Reference in New Issue
Block a user