Closed mhchia closed 5 years ago
Refactoring to switch
and function
looks beautiful too.
https://github.com/ethereum/go-ethereum/blob/master/build/ci.go#L171-L204
@ChihChengLiang The style looks pretty good! And also it doesn't need much effort to refactor. I vote for geth's style.
What is wrong?
The argument parsing is pretty nasty now.
How can it be fixed?
We might want to use some tool like https://github.com/urfave/cli, or just refactor it.