Fix test and add info to -h output.
This commit is contained in:
parent
87cff36f9d
commit
9583394eba
|
@ -730,7 +730,8 @@ void CmdLineParser::PrintHelp()
|
||||||
" Used when certain messages should be displayed but\n"
|
" Used when certain messages should be displayed but\n"
|
||||||
" should not cause a non-zero exitcode.\n"
|
" should not cause a non-zero exitcode.\n"
|
||||||
" --file-list=<file> Specify the files to check in a text file. Add one\n"
|
" --file-list=<file> Specify the files to check in a text file. Add one\n"
|
||||||
" filename per line.\n"
|
" filename per line. When file is -, the file list will\n"
|
||||||
|
" be read from standard input.\n"
|
||||||
" -f, --force Force checking of all configurations in files that have\n"
|
" -f, --force Force checking of all configurations in files that have\n"
|
||||||
" \"too many\" configurations.\n"
|
" \"too many\" configurations.\n"
|
||||||
" -h, --help Print this help.\n"
|
" -h, --help Print this help.\n"
|
||||||
|
|
|
@ -534,12 +534,13 @@ private:
|
||||||
|
|
||||||
void fileListStdin()
|
void fileListStdin()
|
||||||
{
|
{
|
||||||
// TODO: Give it some stdin to read from
|
// TODO: Give it some stdin to read from, fails because the list of
|
||||||
|
// files in stdin (_pathnames) is empty
|
||||||
REDIRECT;
|
REDIRECT;
|
||||||
const char *argv[] = {"cppcheck", "--file-list", "-", "file.cpp"};
|
const char *argv[] = {"cppcheck", "--file-list=-", "file.cpp"};
|
||||||
Settings settings;
|
Settings settings;
|
||||||
CmdLineParser parser(&settings);
|
CmdLineParser parser(&settings);
|
||||||
TODO_ASSERT_EQUALS(true, false, parser.ParseFromArgs(4, argv));
|
TODO_ASSERT_EQUALS(true, false, parser.ParseFromArgs(3, argv));
|
||||||
}
|
}
|
||||||
|
|
||||||
void inlineSuppr()
|
void inlineSuppr()
|
||||||
|
|
Loading…
Reference in New Issue