only write if there are arguments defined
Merge pull request #3 from Contra/master

only write if there are arguments defined. closes #1