diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index 3ab627bce..8d0bc9b56 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -765,7 +765,7 @@ void CmdLineParser::PrintHelp() " --suppressions-list=\n" " Suppress warnings listed in the file. Each suppression\n" " is in the same format as above.\n" - " --template '' Format the error messages. E.g.\n" + " --template='' Format the error messages. E.g.\n" " '{file}:{line},{severity},{id},{message}' or\n" " '{file}({line}):({severity}) {message}'\n" " Pre-defined templates: gcc, vs, edit.\n" diff --git a/man/cppcheck.1.xml b/man/cppcheck.1.xml index 0bd7c5be3..851e55fee 100644 --- a/man/cppcheck.1.xml +++ b/man/cppcheck.1.xml @@ -126,7 +126,7 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ - + @@ -397,7 +397,7 @@ Directory name is matched to all parts of the path. - + Format the error messages. E.g. '{file}:{line},{severity},{id},{message}' or '{file}({line}):({severity}) {message}'. Pre-defined templates: gcc, vs diff --git a/man/manual.docbook b/man/manual.docbook index 1c382c86b..8b93a4c6f 100644 --- a/man/manual.docbook +++ b/man/manual.docbook @@ -353,9 +353,9 @@ Checking path/file2.cpp... templates. To get Visual Studio compatible output you can use - --template vs: + --template=vs: - cppcheck --template vs gui/test.cpp + cppcheck --template=vs gui/test.cpp This output will look like this: @@ -364,9 +364,9 @@ gui/test.cpp(31): error: Memory leak: b gui/test.cpp(16): error: Mismatching allocation and deallocation: k To get gcc compatible output you can use - --template gcc: + --template=gcc: - cppcheck --template gcc gui/test.cpp + cppcheck --template=gcc gui/test.cpp The output will look like this: @@ -377,7 +377,7 @@ gui/test.cpp:16: error: Mismatching allocation and deallocation: kYou can write your own pattern (for example a comma-separated format): - cppcheck --template "{file},{line},{severity},{id},{message}" gui/test.cpp + cppcheck --template="{file},{line},{severity},{id},{message}" gui/test.cpp The output will look like this: