Fixing bug where invalid trailing short flag would cause panic