def METHOD_NAME(parser, client, fd):
    for rpc_call in map(str.rstrip, fd):
        if not rpc_call.strip():
            continue
        args = parser.parse_args(shlex.split(rpc_call))
        args.client = client
        call_rpc_func(args)