.describe('d','path to directory containing all JSON Schemas or a single JSON Schema file. This will be considered as the baseURL. Note that only files ending in .schema.json will be processed.')
.describe('d','path to directory containing all JSON Schemas or a single JSON Schema file. This will be considered as the baseURL. By default only files ending in .schema.json will be processed, unless the schema-extension is set with the -e flag.')
.alias('o','out')
.alias('o','out')
.describe('o','path to output directory')
.describe('o','path to output directory')
.default('o',path.resolve(path.join('.','out')))
.default('o',path.resolve(path.join('.','out')))
...
@@ -33,6 +33,8 @@ var argv = require('optimist')
...
@@ -33,6 +33,8 @@ var argv = require('optimist')
.describe('s','Custom meta schema path to validate schemas')
.describe('s','Custom meta schema path to validate schemas')
.alias('x','schema-out')
.alias('x','schema-out')
.describe('x','output JSON Schema files including description and validated examples in the _new folder at output directory')
.describe('x','output JSON Schema files including description and validated examples in the _new folder at output directory')
.alias('e','schema-extension')
.describe('e','JSON Schema file extension eg. schema.json or json')
.alias('n','no-readme')
.alias('n','no-readme')
.describe('n','Do not generate a README.md file in the output directory')
.describe('n','Do not generate a README.md file in the output directory')
.describe('link-*','Add this file as a link the explain the * attribute, e.g. --link-abstract=abstract.md')
.describe('link-*','Add this file as a link the explain the * attribute, e.g. --link-abstract=abstract.md')
...
@@ -57,6 +59,7 @@ var outDir = path.resolve(argv.o);
...
@@ -57,6 +59,7 @@ var outDir = path.resolve(argv.o);