@bablr/cli 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.js +6 -1
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -15,6 +15,7 @@ program
|
|
|
15
15
|
.option('-l, --language [URL]', 'The URL of the top BABLR language')
|
|
16
16
|
.option('-p, --production [type]', 'The name of the top production type')
|
|
17
17
|
.option('-f, --format', 'Pretty-format CSTML output', true)
|
|
18
|
+
.option('-g, --gaps', 'The source and resulting tree may contain gaps')
|
|
18
19
|
.option('-F, --no-format')
|
|
19
20
|
.option('-v, --verbose', 'Prints debugging information to stderr')
|
|
20
21
|
.option(
|
|
@@ -40,7 +41,11 @@ const options = {
|
|
|
40
41
|
|
|
41
42
|
const language = await import(options.language);
|
|
42
43
|
|
|
43
|
-
const matcher = buildFullyQualifiedSpamMatcher(
|
|
44
|
+
const matcher = buildFullyQualifiedSpamMatcher(
|
|
45
|
+
{ hasGap: options.gaps },
|
|
46
|
+
language.canonicalURL,
|
|
47
|
+
options.production,
|
|
48
|
+
);
|
|
44
49
|
|
|
45
50
|
const logStderr = (...args) => {
|
|
46
51
|
process.stderr.write(args.join(' ') + '\n');
|