Skip to content

Commit 0b6e7d7

Browse files
makulikDaniel Marjamäki
authored andcommitted
Small fixes for -I and --includes-file help texts
1 parent f2199ad commit 0b6e7d7

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

cli/cmdlineparser.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -702,12 +702,15 @@ void CmdLineParser::PrintHelp()
702702
" together with '--max-ifdefs=', the last option is the\n"
703703
" one that is effective.\n"
704704
" -h, --help Print this help.\n"
705-
" -I <dir> Give include path. Give several '-I' parameters to give\n"
706-
" several paths. First given path is checked first. If\n"
707-
" paths are relative to source files, this is not needed.\n"
705+
" -I <dir> Give path to search for include files. Give several\n"
706+
" -I parameters to give several paths. First given path is\n"
707+
" searched for contained header files first. If paths are\n"
708+
" relative to source files, this is not needed.\n"
708709
" --includes-file=<file>\n"
709-
" Specify the include paths to check in a text file. Add\n"
710-
" one include path per line.\n"
710+
" Specify directory paths to search for included header files\n"
711+
" in a text file. Add one include path per line.\n"
712+
" First given path is searched for contained header files first.\n"
713+
" If paths are relative to source files, this is not needed.\n"
711714
" -i <dir or file> Give a source file or source file directory to exclude\n"
712715
" from the check. This applies only to source files so\n"
713716
" header files included by source files are not matched.\n"

man/cppcheck.1.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,14 +268,15 @@ default. If used together with --max-ifdefs=, the last option is the one that is
268268
<varlistentry>
269269
<term><option>-I &lt;dir&gt;</option></term>
270270
<listitem>
271-
<para>Give include path. Give several -I parameters to give several paths. First given path is checked first. If paths are relative to source
272-
files, this is not needed.</para>
271+
<para>Give path to search for include files. Give several -I parameters to give several paths. First given path is
272+
searched for contained header files first. If paths are relative to source files, this is not needed.</para>
273273
</listitem>
274274
</varlistentry>
275275
<varlistentry>
276276
<term><option>--includes-file=&lt;file&gt;</option></term>
277277
<listitem>
278-
<para>Specify the include paths to check in a text file. Add one include path per line.</para>
278+
<para>Specify directory paths to search for included header files in a text file. Add one include path per line.
279+
First given path is searched for contained header files first. If paths are relative to source files, this is not needed.</para>
279280
</listitem>
280281
</varlistentry>
281282

0 commit comments

Comments
 (0)