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

panic to run wit without any parameter or just -h #7

Open
sadeqn opened this issue Jan 20, 2019 · 0 comments
Open

panic to run wit without any parameter or just -h #7

sadeqn opened this issue Jan 20, 2019 · 0 comments

Comments

@sadeqn
Copy link
Contributor

sadeqn commented Jan 20, 2019

as you can see, try to run with using -h make panic and exit! same result when try to run without any argument!

➜  wit git:(master) sudo ./wit -h    
2019/01/20 13:13:22 No cert dir specified! making `cert` dir and key and cert file!
2019/01/20 13:13:22 `server.key` or `server.cert` is not present in cert dir!
2019/01/20 13:13:23 wrote server.crt
2019/01/20 13:13:23 wrote server.key
**panic:** could not build arguments for function "main".main.func1 (/home/sadeq/golang/src/github.com/hbahadorzadeh/wit/wit.go:51): failed to build *service.WebService: could not build arguments for function "main".BuildContainer.func4 (/home/sadeq/golang/src/github.com/hbahadorzadeh/wit/wit.go:34): failed to build *ipset.IPSet: missing dependencies for function "main".BuildContainer.func3 (/home/sadeq/golang/src/github.com/hbahadorzadeh/wit/wit.go:29): type service.IpTables is not in the container, did you mean to use *service.IpTables?

goroutine 1 [running]:
main.main()
	/home/sadeq/golang/src/github.com/hbahadorzadeh/wit/wit.go:56 +0x1ff
➜  wit git:(master) 


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

1 participant