Skip to content

Commit b2901e1

Browse files
committed
added indent cli arg to docs
1 parent e10f43e commit b2901e1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.verb.md

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ Usage: markdown-toc [options] <input>
3030
3131
--no-stripHeadingTags: Do not strip extraneous HTML tags from heading
3232
text before slugifying
33+
34+
--indent: Provide the indentation to use - defaults to ' '
35+
(to specify a tab, use the bash-escaped $'\t')
3336
```
3437

3538
## Highlights

cli.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var toc = require('./index.js');
55
var utils = require('./lib/utils');
66
var args = utils.minimist(process.argv.slice(2), {
77
boolean: ['i', 'json', 'firsth1', 'stripHeadingTags'],
8-
string: ['append', 'bullets'],
8+
string: ['append', 'bullets', 'indent'],
99
default: {
1010
firsth1: true,
1111
stripHeadingTags: true
@@ -36,7 +36,10 @@ if (args._.length !== 1) {
3636
' --no-firsth1: Include the first h1-level heading in a file',
3737
'',
3838
' --no-stripHeadingTags: Do not strip extraneous HTML tags from heading',
39-
' text before slugifying'
39+
' text before slugifying',
40+
'',
41+
' --indent: Provide the indentation to use - defaults to \' \'',
42+
' (to specify a tab, use the bash-escaped $\'\\t\')'
4043
].join('\n'));
4144
process.exit(1);
4245
}

0 commit comments

Comments
 (0)