c9s/gomon — pull request #13 by tkawachi (2013-07-21 09:33:19+00:00)
Title: Separated option parsing function and fixed parsing cmdArgs issue

I separated option parsing into a function to reduce lines of main. It makes easier to write tests.

I found current implementation has an issue for parsing cmdArgs. This pr contains fix for the issue. See `TestParseCmdArg`.