mgrok icon indicating copy to clipboard operation
mgrok copied to clipboard

flag.Parse错误

Open qiuchengw opened this issue 6 years ago • 1 comments

客户端在执行ParseArgs是无法成功的。

./mgrok start -proto="proto" -config="mycfg.yaml" 这样启动是不行的。原因在于: opts = &Options{ ... command: flag.Arg(0), //执行这一句将导致其他的所有命令行参数都无法解析出来 }

我的环境: golang:1.8.1 os: mac osx - high sierra 10.13

qiuchengw avatar May 01 '18 09:05 qiuchengw

好的,收到,有空我就看看。

ansiboy avatar May 02 '18 00:05 ansiboy