From 4cfcb18e7a5d5a89f7155acfb06d06cf04b210af Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Thu, 31 Dec 2020 16:15:53 +0100 Subject: [PATCH] Added help dialog --- exporter.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/exporter.js b/exporter.js index 78b36f5..f2686f1 100644 --- a/exporter.js +++ b/exporter.js @@ -1,6 +1,13 @@ const fs = require('fs'); const args = process.argv.slice(2); +if(args.includes("--help")){ + console.log(`Arguments: + --help: View this help page + --recursive: Include all dependencies' subdependencies + --json: Exports the license information into ./licenses.json as json + --md: Exports the license information into ./licenses.md as markdow`); +} function parsePackageInfo(path) { const packagecontents = JSON.parse(fs.readFileSync(path, { encoding: 'utf-8' }));