Skip to content

Commit 0c3f254

Browse files
authored
Merge pull request #85 from Mogztter/disable-boolean-negation
Disable boolean negation
2 parents 67f3647 + bb11380 commit 0c3f254

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/options.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ const convertOptions = (args, attrs) => {
77
const backend = args['backend']
88
const doctype = args['doctype']
99
const safeMode = args['safe-mode']
10-
// "--no-header-footer" is translated to header-footer = false but the alias "-s" is translated to no-header-footer = true
11-
const embedded = args['embedded'] === true || args['header-footer'] === false || args['no-header-footer'] === true || args['standalone'] === false
10+
const embedded = args['embedded'] === true || args['no-header-footer'] === true || args['standalone'] === false
1211
const standalone = !embedded
1312
const sectionNumbers = args['section-numbers']
1413
const baseDir = args['base-dir']
@@ -248,6 +247,9 @@ By default, the output is written to a file with the basename of the source file
248247
.command('$0 [files...]', '', () => this.cmd)
249248
.version(false)
250249
.help(false)
250+
.parserConfiguration({
251+
'boolean-negation': false
252+
})
251253
}
252254
}
253255

0 commit comments

Comments
 (0)