Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
12 changes: 10 additions & 2 deletions cli/cmdlineparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1895,10 +1895,18 @@ 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. The precision of 'int' and the size of\n"
" 'int' is usually the same, and then you shall not use this option.\n"
" If the precision of 'int' is less than the size of 'int' then use this option to\n"
" specify the precision. BITS shall be a positive value that is less than the size of\n"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First and second sentens repet each other. You can said something like: Only needed if precision of 'int' is less than the size of 'int' Instead

" 'int'. I.e. if size of 'int' is 32 bits then BITS shall be a positive value that is\n"
" less than 32.\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