The function mergeResults takes arguments as input which are not used by it.
It uses the process arguments - process.argv[2] and process.argv[3] to set the directory and file pattern.
This function is called from other scripts that could have different process arguments set and hence does not work for this case. Can mergeResults instead use the arguments sent to it to get the directory and file pattern?
The function mergeResults takes arguments as input which are not used by it. It uses the process arguments -
process.argv[2] and process.argv[3]
to set the directory and file pattern. This function is called from other scripts that could have different process arguments set and hence does not work for this case. Can mergeResults instead use the arguments sent to it to get the directory and file pattern?