Added an else clause as a catch-all, however since this is a CLI tool I just write out stderr and return a non zero.