You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: csgrep.cc
+2-21Lines changed: 2 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -487,25 +487,6 @@ bool chainFilters(
487
487
template <classTDesc, classTStream>
488
488
voidprintUsage(TStream &str, const TDesc &desc) {
489
489
desc.print(str);
490
-
str << "\n\n\
491
-
DESCRIPTION OF AVAILABLE MODES\n\
492
-
------------------------------\n\
493
-
\n\
494
-
dig_key_events - for each defect, print only the checker and key event\n\
495
-
\n\
496
-
evtstat - print overall checker/key_event statistics for the matched defects\n\
497
-
\n\
498
-
files - print only names of error files that contain the matched defects\n\
499
-
\n\
500
-
filestat - print statistics of matched defects per individual source files\n\
501
-
\n\
502
-
grep - print matched defects using the same format as expected on the input\n\
503
-
\n\
504
-
grouped - print matched defects, grouped by error files they originate from\n\
505
-
\n\
506
-
json - print matched defects in a JSON format\n\
507
-
\n\
508
-
stat - print overall statistics of the matched defects in given error files\n\n";
509
490
}
510
491
511
492
template <classTDecorator>
@@ -547,9 +528,9 @@ int main(int argc, char *argv[])
547
528
548
529
try {
549
530
desc.add_options()
550
-
("checker", po::value<string>(), "defect matches if its checker matches the given regex")
531
+
("checker", po::value<string>(), "defect matches if its checker matches the given regex (each defect has assigned exactly one checker)")
551
532
("path", po::value<string>(), "defect matches if the path of its key event matches the given regex")
552
-
("event", po::value<string>(), "defect matches if its key event matches the given regex")
533
+
("event", po::value<string>(), "defect matches if its key event matches the given regex (each defect has exactly one key event, which determines its location in the code)")
553
534
("error", po::value<string>(), "defect matches if the message of its key event matches the given regex")
554
535
("msg", po::value<string>(), "defect matches if any of its messages matches the given regex")
555
536
("annot", po::value<string>(), "defect matches if its annotation matches the given regex")
0 commit comments