Skip to content

Commit

Permalink
show warning if --all flag is set
Browse files Browse the repository at this point in the history
  • Loading branch information
sarisia committed Oct 13, 2020
1 parent 41bd8ff commit 751f031
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doctoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ function cleanPath(path) {
}

function transformAndSave(files, mode, maxHeaderLevel, title, notitle, entryPrefix, processAll, stdOut) {
if (processAll) {
console.log('--all flag is enabled. Including headers before the TOC location.')
}

console.log('\n==================\n');

var transformed = files
Expand Down

0 comments on commit 751f031

Please sign in to comment.