Skip to content

Commit

Permalink
added indent cli arg to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
shanehughes3 committed Nov 27, 2017
1 parent e10f43e commit b2901e1
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 b2901e1

Please sign in to comment.