reversible-preproc-cli
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -18,3 +18,3 @@ 'use strict'; | ||
let reversible_preproc_cli_version="1.0.1"; | ||
let reversible_preproc_cli_version = "1.0.2"; | ||
@@ -49,3 +49,3 @@ const argvMm = parseArgs(process.argv); | ||
} | ||
if (kt === 'defline' || kt === 'deffile') | ||
if (kt === 'defline' || kt === 'deffile' || kt === 'version') | ||
numdef++; | ||
@@ -77,3 +77,3 @@ argv[kt] = argvMm[k]; | ||
//console.log(outline) | ||
outline = outline===null ? "" : outline + '\n'; | ||
outline = outline === null ? "" : outline + '\n'; | ||
next(err, outline); | ||
@@ -93,9 +93,12 @@ } | ||
{ | ||
if (argv.version){ | ||
process.stdout.write(` | ||
reversible-preproc-cli ${reversible_preproc_cli_version} | ||
`); | ||
if (argv.version) { | ||
process.stdout.write( | ||
` | ||
reversible-preproc-cli ${reversible_preproc_cli_version} | ||
` | ||
); | ||
process.exit(0); | ||
} | ||
// console.log(argv) | ||
// console.log(argv) | ||
// set up streams | ||
@@ -111,4 +114,4 @@ let rawdata, readable, writable; | ||
let defJson = JSON.parse(rawdata); | ||
// console.log("The defines input is:") | ||
// console.log(JSON.stringify(defJson, 0, 2)) | ||
// console.log("The defines input is:") | ||
// console.log(JSON.stringify(defJson, 0, 2)) | ||
let testOut = Reflect.ownKeys(argv).includes('testout'); | ||
@@ -115,0 +118,0 @@ let rpp = new ReversiblePreproc(defJson, { testMode: testOut }); |
{ | ||
"name": "reversible-preproc-cli", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "CLI for reversible-preproc", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15847
271