Quellcode durchsuchen

fixed test of collect --help command

prozessorkern vor 4 Jahren
Ursprung
Commit
bd65a63809

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

@@ -35,9 +35,9 @@ class Plugin(api.Plugin, api.Parent, api.IConfigurable, api.IRunable):
         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", action='append',
-                         help="Adds a regular expression pattern to include files in processing (files have to match any rule to be included) [default: %default]")
+                         help="Adds a regular expression pattern to include files in processing (files have to match any rule to be included)")
         parser.add_option("--exclude-files", "--ef", action='append',
-                         help="Adds a regular expression pattern to exclude files or directories from processing [default: %default]")
+                         help="Adds a regular expression pattern to exclude files or directories from processing")
         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

+ 2 - 2
metrixpp/tests/general/test_basic/test_help_collect_default_stdout.gold.txt

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