Skip to content

Commit 8a2af82

Browse files
authored
Premium: Update --help output and manual for --premium-license-file and --premium-cert-c-int-precision options (danmar#7755)
1 parent 12e63b4 commit 8a2af82

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

cli/cmdlineparser.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,10 +1895,15 @@ void CmdLineParser::printHelp() const
18951895
" To check all files, append \":all\" i.e. --premium=misra-c++-2023:all.\n"
18961896
" Other:\n"
18971897
" * bughunting Soundy analysis\n"
1898-
" * cert-c-int-precision=BITS Integer precision to use in Cert C analysis.\n"
18991898
" * metrics Calculate metrics. Metrics are only reported in xmlv3 output.\n"
19001899
" * safety Turn on safety certified behavior (ON by default)\n"
1901-
" * safety-off Turn off safety certified behavior\n";
1900+
" * safety-off Turn off safety certified behavior\n"
1901+
" --premium-cert-c-int-precision=BITS\n"
1902+
" Integer precision to use in Cert C analysis. Only needed if precision of 'int' is\n"
1903+
" less than the size of 'int'. BITS shall be a positive value that is less than the\n"
1904+
" size of 'int'. This precision is used for INT35-C checking.\n"
1905+
" --premium-license-file=<path>\n"
1906+
" Provide license file path with argument.\n";
19021907
}
19031908

19041909
oss <<

man/manual-premium.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,17 @@ https://www.cppcheck.com/plans-pricing
13421342
This is described on the Cppcheck Premium website:
13431343
https://www.cppcheck.com
13441344

1345+
### License file path
1346+
1347+
There are predefined paths where the premium addon search for license files. If you want to
1348+
provide an arbitrary license file path on the command line you can use the option
1349+
`--premium-license-file`. Example:
1350+
1351+
cppcheck --premium-license-file=path/to/file.lic test.cpp
1352+
1353+
If an explicit path is provided like this then premium addon does not search for license
1354+
files in the predefined paths.
1355+
13451356
### Troubleshooting
13461357

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

0 commit comments

Comments
 (0)