diff --git a/bin/license-checker-rseidelsohn b/bin/license-checker-rseidelsohn index 148ca48..9edb603 100644 --- a/bin/license-checker-rseidelsohn +++ b/bin/license-checker-rseidelsohn @@ -54,13 +54,14 @@ const kownOptions = usageEntries .concat(['color']); const usageMessage = usageEntries.join('\n'); const unknownArgs = Object.keys(args).filter((arg) => { return !kownOptions.includes(arg); }); - +// console.log('args: ', args); if (unknownArgs.length) { console.error(`license-checker-rseidelsohn@${require('../package.json').version}`, '\n'); console.error(`Warning: Unknown option${unknownArgs.length > 1 ? 's' : ''}: ${unknownArgs.map((unknownArg) => { return `'${unknownArg}'`; }).join(', ')}`); console.error(` Possibly a typo? Currently known options are:`); console.error(usageMessage, '\n'); } +// process.exit(1); if (!unknownArgs.length && args.help) { console.error(`license-checker-rseidelsohn@${require('../package.json').version}`); diff --git a/lib/index.js b/lib/index.js index b563624..9ebebb6 100644 --- a/lib/index.js +++ b/lib/index.js @@ -26,8 +26,6 @@ const debugLog = debug('license-checker-rseidelsohn:log'); debugLog.log = console.log.bind(console); const flatten = function flatten(options) { - console.log('Options: ', options); - const moduleInfo = { licenses: UNKNOWN, }; @@ -161,7 +159,7 @@ const flatten = function flatten(options) { }); } - files.forEach(function (filename, index) { + files.forEach(function(filename, index) { licenseFile = path.join(json.path, filename); // Checking that the file is in fact a normal file and not a directory for example. /*istanbul ignore else*/