docs(cmd): update doc

update doc

Signed-off-by: mritd <mritd@linux.com>
This commit is contained in:
mritd
2022-02-10 11:57:36 +08:00
parent 187cc2a97d
commit e1c36405c2

View File

@@ -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
}