Browse Source

changed the help text of the --include-file option

prozessorkern 4 years ago
parent
commit
4dbb197c8f

+ 2 - 2
ext/std/tools/collect.py

@@ -34,9 +34,9 @@ class Plugin(mpp.api.Plugin, mpp.api.Parent, mpp.api.IConfigurable, mpp.api.IRun
         parser.add_option("--std.general.size", "--sgs", action="store_true", default=False,
                          help="If the option is set (True), the tool collects file size metric (in bytes) [default: %default]")
         parser.add_option("--include-files", "--if", default=r'.*',
-                         help="Defines the regular expression pattern to include files in processing [default: %default]")
+                         help="Adds a regular expression pattern to include files in processing (files have to match any rule to be included) [default: %default]")
         parser.add_option("--exclude-files", "--ef", default=r'^[.]',
-                         help="Defines the regular expression pattern to exclude files from processing [default: %default]")
+                         help="Adds a regular expression pattern to exclude files or directories from processing [default: %default]")
         parser.add_option("--non-recursively", "--nr", action="store_true", default=False,
                          help="If the option is set (True), sub-directories are not processed [default: %default]")
         self.optparser = parser

+ 5 - 4
tests/general/test_basic/test_help_collect_default_stdout.gold.txt

@@ -134,11 +134,12 @@ Options:
                         If the option is set (True), the tool collects file
                         size metric (in bytes) [default: False]
   --include-files=INCLUDE_FILES, --if=INCLUDE_FILES
-                        Defines the regular expression pattern to include
-                        files in processing [default: .*]
+                        Adds a regular expression pattern to include files in
+                        processing (files have to match any rule to be
+                        included) [default: .*]
   --exclude-files=EXCLUDE_FILES, --ef=EXCLUDE_FILES
-                        Defines the regular expression pattern to exclude
-                        files from processing [default: ^[.]]
+                        Adds a regular expression pattern to exclude files or
+                        directories from processing [default: ^[.]]
   --non-recursively, --nr
                         If the option is set (True), sub-directories are not
                         processed [default: False]