code: def used_options(self):
          
          for option_str in filter(lambda c: c.startswith('-'), self.words):
              for option in list(self.cmd.options.values()):
                  if option_str in option.option_strings:
                      yield option
docs: Return options already used in the
          command line
  
          rtype: command.Option generator