Clean up the parser's flags properly.
Correctly set default value when flag is not given.

Finishing up surtrlog/weyland#3