Skip to content

Commit 2fa2157

Browse files
author
Daniel Marjamäki
committed
Cppcheck: Added short info about --rule and --rule-file to --help output
1 parent e8ebbf2 commit 2fa2157

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

cli/cmdlineparser.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,8 +610,9 @@ void CmdLineParser::PrintHelp()
610610
" cppcheck [--append=file] [-D<ID>] [--enable=<id>] [--error-exitcode=[n]]\n"
611611
" [--exitcode-suppressions file] [--file-list=file.txt] [--force]\n"
612612
" [--help] [-Idir] [--inline-suppr] [-j [jobs]] [--quiet]\n"
613-
" [--report-progress] [--style] [--suppressions-list=file.txt]\n"
614-
" [--verbose] [--version] [--xml] [file or path1] [file or path]\n"
613+
" [--report-progress] [--rule=<rule>] [--rule-file=<file>]\n"
614+
" [--style] [--suppressions-list=file.txt] [--verbose]\n"
615+
" [--version] [--xml] [file or path1] [file or path]\n"
615616
"\n"
616617
"If path is given instead of filename, *.cpp, *.cxx, *.cc, *.c++ and *.c files\n"
617618
"are checked recursively from given directory.\n\n"
@@ -655,6 +656,8 @@ void CmdLineParser::PrintHelp()
655656
" -j [jobs] Start [jobs] threads to do the checking simultaneously.\n"
656657
" -q, --quiet Only print error messages\n"
657658
" --report-progress Report progress messages while checking a file.\n"
659+
" --rule=<rule> match regular expression\n"
660+
" --rule-file=<file> use given rule file\n"
658661
" -s, --style deprecated, use --enable=style\n"
659662
" --suppressions-list=file\n"
660663
" Suppress warnings listed in the file. Filename and line\n"

0 commit comments

Comments
 (0)