code: def add(args):
      
      session = c.Session(args)
      if args["name"] in session.feeds.sections():
          sys.exit("You already have a feed with that name.")
      if args["name"] in ["all", "DEFAULT"]:
          sys.exit(
              ("greg uses ""{}"" for a special purpose."
               "Please choose another name for your feed.").format(args["name"]))
      entry = {}
      for key, value in args.items():
          if value is not None and key != "func" and key != "name":
              entry[key] = value
      session.feeds[args["name"]] = entry
      with open(session.data_filename, 'w') as configfile:
          session.feeds.write(configfile)
docs: Add a new feed