Fix a bug when parsing arguments

finish_args should be called before using renderer_arg.
Merge pull request #8 from hanwentao/master

Fix a bug when parsing arguments