Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions cli/cmdlineparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1895,10 +1895,15 @@ void CmdLineParser::printHelp() const
" To check all files, append \":all\" i.e. --premium=misra-c++-2023:all.\n"
" Other:\n"
" * bughunting Soundy analysis\n"
" * cert-c-int-precision=BITS Integer precision to use in Cert C analysis.\n"
" * metrics Calculate metrics. Metrics are only reported in xmlv3 output.\n"
" * safety Turn on safety certified behavior (ON by default)\n"
" * safety-off Turn off safety certified behavior\n";
" * safety-off Turn off safety certified behavior\n"
" --premium-cert-c-int-precision=BITS\n"
" Integer precision to use in Cert C analysis. Only needed if precision of 'int' is\n"
" less than the size of 'int'. BITS shall be a positive value that is less than the\n"
" size of 'int'. This precision is used for INT35-C checking.\n"
" --premium-license-file=<path>\n"
" Provide license file path with argument.\n";
}

oss <<
Expand Down
11 changes: 11 additions & 0 deletions man/manual-premium.md
Original file line number Diff line number Diff line change
Expand Up @@ -1342,6 +1342,17 @@ https://www.cppcheck.com/plans-pricing
This is described on the Cppcheck Premium website:
https://www.cppcheck.com

### License file path

There are predefined paths where the premium addon search for license files. If you want to
provide an arbitrary license file path on the command line you can use the option
`--premium-license-file`. Example:

cppcheck --premium-license-file=path/to/file.lic test.cpp

If an explicit path is provided like this then premium addon does not search for license
files in the predefined paths.

### Troubleshooting

If your license does not work you can get some details about the license validation by executing
Expand Down