Commits

John Mulligan committed 2b9367c

cli: remove diaper coding in lower level code

  • Participants
  • Parent commits 7226e8b

Comments (0)

Files changed (1)

File vanity/cli.py

                 fetcher = self.getlong
             else:
                 fetcher = self.getshort
-            try:
-                option = fetcher(opt)
-            except KeyError:
-                raise InvalidOption(opt)
+            option = fetcher(opt)
             name = option.name
             if assembled[name] is None:
                 assembled[name] = True