From b2901e1c5c459966748211a8e5f2dc550407a429 Mon Sep 17 00:00:00 2001 From: Shane Hughes Date: Mon, 27 Nov 2017 13:33:52 -0600 Subject: [PATCH] added indent cli arg to docs --- .verb.md | 3 +++ cli.js | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.verb.md b/.verb.md index 653bb6c..bdd7611 100644 --- a/.verb.md +++ b/.verb.md @@ -30,6 +30,9 @@ Usage: markdown-toc [options] --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 diff --git a/cli.js b/cli.js index b601704..87dd4c0 100755 --- a/cli.js +++ b/cli.js @@ -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 @@ -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); }