From 14ad2589d198fa72cdfd48bd7f073533281f523b Mon Sep 17 00:00:00 2001 From: David Hempy Date: Fri, 25 Sep 2020 14:20:35 -0400 Subject: [PATCH] Document syntax for multiple cops named in a command-flag --- docs/modules/ROOT/pages/usage/basic_usage.adoc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/modules/ROOT/pages/usage/basic_usage.adoc b/docs/modules/ROOT/pages/usage/basic_usage.adoc index 90178c49b41..bfbcd391516 100644 --- a/docs/modules/ROOT/pages/usage/basic_usage.adoc +++ b/docs/modules/ROOT/pages/usage/basic_usage.adoc @@ -121,6 +121,14 @@ For more details check the available command-line options: $ rubocop -h ---- +To specify multiple cops for one flag, separate cops with commas and no spaces: + +[source,sh] +---- +$ rubocop --only Rails/Blank,Layout/HeredocIndentation,Naming/FileName +---- + + |=== | Command flag | Description