Shortened the parseShortOptions method