Skip to content

Commit 964b6cb

Browse files
committed
help: Improved help text for -D and -U
1 parent c65437c commit 964b6cb

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

cli/cmdlineparser.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -743,14 +743,12 @@ void CmdLineParser::PrintHelp()
743743
" by providing an implementation for them.\n"
744744
" --check-config Check cppcheck configuration. The normal code\n"
745745
" analysis is disabled by this flag.\n"
746-
" -D<ID> By default Cppcheck checks all configurations. When -D\n"
747-
" is used, Cppcheck only checks the given configuration.\n"
748-
" But you can also use --force or --max-configs to check\n"
749-
" multiple configurations.\n"
746+
" -D<ID> Define preprocessor symbol. Unless --max-configs or\n"
747+
" --force is used, Cppcheck will only check the given\n"
748+
" configuration when -D is used.\n"
750749
" Example: '-DDEBUG=1 -D__cplusplus'.\n"
751-
" -U<ID> By default Cppcheck checks all configurations. Use -U\n"
752-
" to explicitly hide certain #ifdef <ID> code paths from\n"
753-
" checking.\n"
750+
" -U<ID> Undefine preprocessor symbol. Use -U to explicitly\n"
751+
" hide certain #ifdef <ID> code paths from checking.\n"
754752
" Example: '-UDEBUG'\n"
755753
" --enable=<id> Enable additional checks. The available ids are:\n"
756754
" * all\n"

0 commit comments

Comments
 (0)