fix option parsing for `cfg` option

This allows --cfg both before and after the positional argument.
Merge pull request #3 from michaelficarra/patch-2

fix option parsing for `cfg` option