code: def program_options(self, args):
          
          options = {}
          for name, rule in self.option_rules.items():
              val = rule(args)
              if val is not None:
                  options[name] = val
          return options
docs: Get program options from docopt parsed options.