Add returning of hashmap to Parser.parse, need to look into how to represent different types of flags