Merge pull request #8 from hanwentao/master

Fix a bug when parsing arguments