Add support for command line args

This small patch adds support for
`--base=/some/dir`
`--port=1234` and
`--cmode=0755`