Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flag.Parse错误 #1

Open
qiuchengw opened this issue May 1, 2018 · 1 comment
Open

flag.Parse错误 #1

qiuchengw opened this issue May 1, 2018 · 1 comment

Comments

@qiuchengw
Copy link

客户端在执行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

@ansiboy
Copy link
Owner

ansiboy commented May 2, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants