Skip to content
This repository has been archived by the owner on Oct 17, 2019. It is now read-only.

Commit

Permalink
Skip ADL export by default
Browse files Browse the repository at this point in the history
Skip ADL export by default.  Turn it on via `-a` or `--adl` flags.
  • Loading branch information
cmoesel committed Aug 17, 2018
1 parent 0348f00 commit f881ba6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ $ node . --help
-l, --log-level <level> the console log level <fatal,error,warn,info,debug,trace> (default: info)
-m, --log-mode <mode> the console log mode <short,long,json,off> (default: short)
-s, --skip <feature> skip an export feature <fhir,json,cimcore,json-schema,es6,model-doc,all> (default: <none>)
-a, --adl run the adl exporter (default: false)
-o, --out <out> the path to the output folder (default: ./out)
-c, --config <config>', 'the name of the config file (default: config.json)
-d, --duplicate' show duplicate error messages (default: false)
Expand Down
7 changes: 5 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ program
.usage('<path-to-shr-defs> [options]')
.option('-l, --log-level <level>', 'the console log level <fatal,error,warn,info,debug,trace> (default: info)', /^(fatal|error|warn|info|debug|trace)$/i, 'info')
.option('-m, --log-mode <mode>', 'the console log mode <short,long,json,off> (default: short)', /^(short|long|json|off)$/i, 'short')
.option('-s, --skip <feature>', 'skip an export feature <fhir,json,cimcore,json-schema,es6,model-doc,adl,all> (default: <none>)', collect, [])
.option('-s, --skip <feature>', 'skip an export feature <fhir,json,cimcore,json-schema,es6,model-doc,all>', collect, [])
.option('-a, --adl', 'run the adl exporter (default: false)')
.option('-o, --out <out>', `the path to the output folder (default: ${path.join('.', 'out')})`, path.join('.', 'out'))
.option('-c, --config <config>', 'the name of the config file (default: config.json)', 'config.json')
.option('-d, --duplicate', 'show duplicate error messages (default: false)')
Expand All @@ -56,7 +57,9 @@ const doJSONSchema = program.skip.every(a => a.toLowerCase() != 'json-schema' &&
const doES6 = program.skip.every(a => a.toLowerCase() != 'es6' && a.toLowerCase() != 'all');
const doModelDoc = program.skip.every(a => a.toLowerCase() != 'model-doc' && a.toLowerCase() != 'all');
const doCIMCORE = program.skip.every(a => a.toLowerCase() != 'cimcore' && a.toLowerCase() != 'all');
const doADL = program.skip.every(a => a.toLowerCase() != 'adl' && a.toLowerCase() != 'all');

// Process the ADL flag
const doADL = program.adl;

// Process the de-duplicate error flag

Expand Down

0 comments on commit f881ba6

Please sign in to comment.