fixed issue with hyphen being mistaken for a flag
refactored the dieSyntax method