Skip to content

Commit

Permalink
Merge pull request jonschlinkert#105 from shanehughes3/master
Browse files Browse the repository at this point in the history
Add indent cli argument to docs
  • Loading branch information
doowb authored Dec 20, 2017
2 parents 9e68914 + b2901e1 commit 4ba79a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .verb.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ Usage: markdown-toc [options] <input>
--no-stripHeadingTags: Do not strip extraneous HTML tags from heading
text before slugifying
--indent: Provide the indentation to use - defaults to ' '
(to specify a tab, use the bash-escaped $'\t')
```

## Highlights
Expand Down
7 changes: 5 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var toc = require('./index.js');
var utils = require('./lib/utils');
var args = utils.minimist(process.argv.slice(2), {
boolean: ['i', 'json', 'firsth1', 'stripHeadingTags'],
string: ['append', 'bullets'],
string: ['append', 'bullets', 'indent'],
default: {
firsth1: true,
stripHeadingTags: true
Expand Down Expand Up @@ -36,7 +36,10 @@ if (args._.length !== 1) {
' --no-firsth1: Include the first h1-level heading in a file',
'',
' --no-stripHeadingTags: Do not strip extraneous HTML tags from heading',
' text before slugifying'
' text before slugifying',
'',
' --indent: Provide the indentation to use - defaults to \' \'',
' (to specify a tab, use the bash-escaped $\'\\t\')'
].join('\n'));
process.exit(1);
}
Expand Down

0 comments on commit 4ba79a2

Please sign in to comment.