code: def main():
      
      parser = argparse.ArgumentParser(description='AFTV Server')
      parser.add_argument('-p', '--port', type=int, help='listen port', default=5556)
      parser.add_argument('-d', '--default', help='default Amazon Fire TV host', nargs='?')
      parser.add_argument('-c', '--config', type=str, help='Path to config file')
      args = parser.parse_args()
  
      if args.config:
          _add_devices_from_config(args)
  
      if args.default and not add('default', args.default):
          exit('invalid hostname')
      app.run(host='0.0.0.0', port=args.port)
docs: Set up the server.