code: def parse_options(given, available):
      
      for key, value in sorted(given.items()):
          if not value:
              continue
          if key in available:
              yield "--{0}={1}".format(key, value)
docs: Given a set of options, check if available