Merge pull request #24 from eparis/longArgCleanup

Slight code cleanup parsing long flags