@@ -241,11 +241,11 @@ def help():
241241@click .option ('--ssl' , '-s' , default = False , help = 'Server is SSL-enabled' )
242242# CSV file paths
243243@click .option ('--nodes' , '-n' , required = True , multiple = True , help = 'path to node csv file' )
244- @click .option ('--relations ' , '-r' , multiple = True , help = 'path to relation csv file' )
244+ @click .option ('--relationships ' , '-r' , multiple = True , help = 'path to relation csv file' )
245245# Debug options
246246@click .option ('--max_buffer_size' , '-m' , default = 1024 * 1024 , help = '(DEBUG ONLY) - max token count per Redis query' )
247247
248- def bulk_insert (graph , host , port , password , ssl , nodes , relations , max_buffer_size ):
248+ def bulk_insert (graph , host , port , password , ssl , nodes , relationships , max_buffer_size ):
249249 global graphname
250250 global redis_client
251251 global max_tokens
@@ -260,8 +260,8 @@ def bulk_insert(graph, host, port, password, ssl, nodes, relations, max_buffer_s
260260 print ("Building label descriptors..." )
261261 label_descriptors = build_descriptors (nodes , "NODES" )
262262 relation_count = 0
263- if relations :
264- relation_descriptors = build_descriptors (relations , "RELATIONS" )
263+ if relationships :
264+ relation_descriptors = build_descriptors (relationships , "RELATIONS" )
265265 relation_count = relation_descriptors .total_entities
266266
267267 # Send prefix tokens to RedisGraph
@@ -272,7 +272,7 @@ def bulk_insert(graph, host, port, password, ssl, nodes, relations, max_buffer_s
272272 # Process input CSVs and commit their contents to RedisGraph
273273 # Possibly make this a method on Argument
274274 label_descriptors .batch_insert_descriptors ()
275- if relations :
275+ if relationships :
276276 relation_descriptors .batch_insert_descriptors ()
277277 finalize_graph ()
278278
0 commit comments