Skip to content

Commit

Permalink
Remove debugging output
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Seidelsohn committed May 2, 2021
1 parent 2e30514 commit 4b132b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion bin/license-checker-rseidelsohn
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down
4 changes: 1 addition & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down Expand Up @@ -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*/
Expand Down

0 comments on commit 4b132b2

Please sign in to comment.