update recommendation to include arguments passed to script

This commit is contained in:
ConorDavenport 2020-05-11 13:06:32 +01:00
parent 654b8d84fe
commit 397e93d0e3

6
bin.js
View File

@ -613,7 +613,11 @@ async function runTool (args, Tool, version, uiOptions) {
if (Tool.name === 'ClinicDoctor' && !args['collect-only'] && !args['visualize-only']) {
const iss = tool.issue
const proc = dargs(args['--'])
const argsArr = args['--']
argsArr.shift()
const proc = argsArr.join(' ')
if (iss !== 'none' && iss !== undefined) {
console.log(`Doctor detected a potential ${iss} issue.`)
}