Changed --inspect to --report to avoid conflict with Node's own debug tools.

This commit is contained in:
DebaucheryLibrarian
2020-12-02 21:26:55 +01:00
parent f5939c81d3
commit be1821b9eb
5 changed files with 6 additions and 7 deletions

View File

@@ -66,7 +66,7 @@ async function init() {
const movieScenes = argv.movieScenes ? deepMovies.map(movie => movie.scenes?.map(scene => ({ ...scene, entity: movie.entity }))).flat().filter(Boolean) : [];
const deepMovieScenes = argv.deep ? await fetchScenes(movieScenes) : movieScenes;
if (argv.inspect) {
if (argv.report) {
console.log(util.inspect(deepScenes, { depth: Infinity, colors: true }));
console.log(util.inspect(deepMovies, { depth: Infinity, colors: true }));
}