Skip to content

Commit 7849312

Browse files
committed
csgrep: Fix --prune-events option description
Correct description of the --prune-events option for csgrep. When this option is specified, events with the verbosity level matching the number specified as option argument are preserved, while the previous description indicated they were pruned. Also slightly tweaking the --imp-level description to replace "greater or equal than" with "greater than or equal to", similar to the wording of the new description for --prune-events.
1 parent 0a73880 commit 7849312

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/csgrep.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -569,11 +569,11 @@ int main(int argc, char *argv[])
569569
("tool", po::value<string>(), "defect matches if it was detected by tool that matches the given regex")
570570
("annot", po::value<string>(), "defect matches if its annotation matches the given regex")
571571
("src-annot", po::value<string>(), "defect matches if an annotation in the _source_ file matches the given regex")
572-
("imp-level", po::value<int>(), "defect matches if the importance level is greater or equal than the given number")
572+
("imp-level", po::value<int>(), "defect matches if the importance level is greater than or equal to the given number")
573573

574574
("drop-scan-props", "do not propagate scan properties")
575575
("embed-context,U", po::value<int>(), "embed a number of lines of context from the source file for the key event")
576-
("prune-events", po::value<int>(), "event is preserved if its verbosity level is below the given number")
576+
("prune-events", po::value<int>(), "event is preserved if its verbosity level is less than or equal to the given number")
577577
("warning-rate-limit", po::value<int>(), "stop processing a warning if the count of its occurrences exceeds the specified limit")
578578
("limit-msg-len", po::value<int>(), "limit message length by a number provided")
579579
("remove-duplicates,u", "remove defects that are not unique by their key event")

0 commit comments

Comments
 (0)