From dd95e438861ac308b3a9d084f703801cee98c47f Mon Sep 17 00:00:00 2001 From: Meisam <39205857+MFTabriz@users.noreply.github.com> Date: Tue, 16 Aug 2022 21:02:31 +0200 Subject: [PATCH] Update the help for `--enable` & `--disable` (#315) --- README.md | 4 ++-- markdownlint.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 28f35bf9e..599d46861 100644 --- a/README.md +++ b/README.md @@ -37,8 +37,8 @@ markdownlint --help -q, --quiet do not write issues to STDOUT -r, --rules [file|directory|glob|package] include custom rule files (default: []) -s, --stdin read from STDIN (does not work with files) - --enable [rules...] Enable certain rules, e.g. --enable MD013 MD041 - --disable [rules...] Disable certain rules, e.g. --disable MD013 MD041 + --enable [rules...] Enable certain rules, e.g. --enable MD013 MD041 -- + --disable [rules...] Disable certain rules, e.g. --disable MD013 MD041 -- -h, --help display help for command ``` diff --git a/markdownlint.js b/markdownlint.js index 0cb02de3b..1d794059d 100755 --- a/markdownlint.js +++ b/markdownlint.js @@ -192,8 +192,8 @@ program .option('-q, --quiet', 'do not write issues to STDOUT') .option('-r, --rules [file|directory|glob|package]', 'include custom rule files', concatArray, []) .option('-s, --stdin', 'read from STDIN (does not work with files)') - .option('--enable [rules...]', 'Enable certain rules, e.g. --enable MD013 MD041') - .option('--disable [rules...]', 'Disable certain rules, e.g. --disable MD013 MD041'); + .option('--enable [rules...]', 'Enable certain rules, e.g. --enable MD013 MD041 --') + .option('--disable [rules...]', 'Disable certain rules, e.g. --disable MD013 MD041 --'); program.parse(process.argv);