code: def process_ioc(args):
      
      client = IndicatorClient.from_config()
      client.set_debug(True)
  
      if args.get:
          response = client.get_indicators()
      elif args.single:
          response = client.add_indicators(indicators=[args.single],
                                           private=args.private, tags=args.tags)
      else:
          if not os.path.isfile(args.file):
              raise Exception("File path isn't valid!")
  
          indicators = list()
          with open(args.file, 'r') as handle:
              for line in handle:
                  line = line.strip()
                  if line == '':
                      continue
                  indicators.append(line)
  
          response = client.add_indicators(indicators=indicators,
                                           private=args.private, tags=args.tags)
  
      return response
docs: Process actions related to the IOC switch.