Fix crash when using --arch long form option

Fixes #1.
Fixes #21.
Merge pull request #22 from zlandau/cmdline

Fix crash when using --arch long form option