Skip to content

Commit

Permalink
Update doctoc.js
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Smith <andrewsmith@alumni.stanford.edu>
  • Loading branch information
I-3B and AndrewSouthpaw authored Jun 5, 2024
1 parent f502d3c commit 33bfcf8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doctoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ if (argv.h || argv.help) {
printUsageAndExit();
}

if(argv['syntax']!==undefined && !supportedSyntaxes.includes(argv['syntax'])){
console.error('Unknown syntax:',argv['syntax'])
console.error('\nSupported Syntaxes are:', supportedSyntaxes.join(", "))
if (argv['syntax'] !== undefined && !supportedSyntaxes.includes(argv['syntax'])) {
console.error('Unknown syntax:', argv['syntax'])
console.error('Supported options:', supportedSyntaxes.join(", "))
process.exit(2)
}
for (var key in modes) {
Expand Down

0 comments on commit 33bfcf8

Please sign in to comment.