help: Improved help text for -D and -U

This commit is contained in:
Daniel Marjamäki 2013-06-09 13:00:08 +02:00
parent c65437c74c
commit 964b6cbd82
1 changed files with 5 additions and 7 deletions

View File

@ -743,14 +743,12 @@ void CmdLineParser::PrintHelp()
" by providing an implementation for them.\n"
" --check-config Check cppcheck configuration. The normal code\n"
" analysis is disabled by this flag.\n"
" -D<ID> By default Cppcheck checks all configurations. When -D\n"
" is used, Cppcheck only checks the given configuration.\n"
" But you can also use --force or --max-configs to check\n"
" multiple configurations.\n"
" -D<ID> Define preprocessor symbol. Unless --max-configs or\n"
" --force is used, Cppcheck will only check the given\n"
" configuration when -D is used.\n"
" Example: '-DDEBUG=1 -D__cplusplus'.\n"
" -U<ID> By default Cppcheck checks all configurations. Use -U\n"
" to explicitly hide certain #ifdef <ID> code paths from\n"
" checking.\n"
" -U<ID> Undefine preprocessor symbol. Use -U to explicitly\n"
" hide certain #ifdef <ID> code paths from checking.\n"
" Example: '-UDEBUG'\n"
" --enable=<id> Enable additional checks. The available ids are:\n"
" * all\n"