bin/src/cli-main.js
function getReportFilename({ filename }, { reportFilename }) {
  return reportFilename || filename.split(path.sep).pop().replace(JsonFileRegex, '');
}
function getReportFilename({ filename }, { reportFilename }) {
  return reportFilename || filename.split(path.sep).pop().replace(JsonFileRegex, '');
}
function getReportFilename ( { filename } , { reportFilename } ) { return reportFilename || filename . split ( path . sep ) . pop ( ) . replace ( JsonFileRegex , '' ) ; }
Get the reportFilename option to be passed to `report.create`

Returns the `reportFilename` option if provided otherwise
it returns the base filename stripped of path and extension

@param {Object} file.filename Name of file to be processed
@param {Object} args CLI process arguments

@return {string} Filename
Get the reportFilename option to be passed to report . create