mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-06-14 16:29:57 +00:00
docs(cmd): update doc
update doc Signed-off-by: mritd <mritd@linux.com>
This commit is contained in:
parent
187cc2a97d
commit
e1c36405c2
@ -123,6 +123,7 @@ var serverCmd = &cobra.Command{
|
||||
},
|
||||
}
|
||||
|
||||
// fakeFlags replace the old flag format with the new format(eg: `-config` ->> `--config`)
|
||||
func fakeFlags() {
|
||||
var args []string
|
||||
fr, _ := regexp.Compile(`^-[a-zA-Z]{2,}`)
|
||||
@ -133,7 +134,6 @@ func fakeFlags() {
|
||||
} else {
|
||||
args = append(args, arg)
|
||||
}
|
||||
|
||||
}
|
||||
os.Args = args
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user