From f9a2b6ce1bb89063f80bbd262ca5fc3a05edfcbb Mon Sep 17 00:00:00 2001 From: Meisam <39205857+MFTabriz@users.noreply.github.com> Date: Tue, 16 Aug 2022 09:14:44 +0200 Subject: [PATCH 1/4] update --enable --disable usage --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 28f35bf9..8d3e3286 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 (list must end with --), e.g. --enable MD013 MD041 -- + --disable [rules...] Disable certain rules (list must end with --), e.g. --disable MD013 MD041 -- -h, --help display help for command ``` From 948bd07ada1246e657be0fe5c96693f2059fb0e7 Mon Sep 17 00:00:00 2001 From: Meisam <39205857+MFTabriz@users.noreply.github.com> Date: Tue, 16 Aug 2022 09:17:09 +0200 Subject: [PATCH 2/4] update --enable --disable usage --- markdownlint.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markdownlint.js b/markdownlint.js index 0cb02de3..5b8c6672 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 (list must end with --), e.g. --enable MD013 MD041 --') + .option('--disable [rules...]', 'Disable certain rules (list must end with --), e.g. --disable MD013 MD041 --'); program.parse(process.argv); From 7a2138e3e4233a0e75d014533fbf0ea76b1dddf2 Mon Sep 17 00:00:00 2001 From: Meisam <39205857+MFTabriz@users.noreply.github.com> Date: Tue, 16 Aug 2022 18:33:00 +0200 Subject: [PATCH 3/4] update the usage guide [skip ci] show -- only in the example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8d3e3286..599d4686 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 (list must end with --), e.g. --enable MD013 MD041 -- - --disable [rules...] Disable certain rules (list must end with --), 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 ``` From 0c851f91e896b52c9582e7a4cc0923cccabaaa35 Mon Sep 17 00:00:00 2001 From: Meisam <39205857+MFTabriz@users.noreply.github.com> Date: Tue, 16 Aug 2022 18:33:54 +0200 Subject: [PATCH 4/4] update the usage guide show -- only in the example --- markdownlint.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markdownlint.js b/markdownlint.js index 5b8c6672..1d794059 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 (list must end with --), e.g. --enable MD013 MD041 --') - .option('--disable [rules...]', 'Disable certain rules (list must end with --), 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);