license-scanner: scan files to detect licenses
LICENSE-SCANNER
Scan files to detect licenses.
Example usage to print copyrights, hash codes, and blocks found in file LICENSE.txt:
$ license-scanner -c -x -f LICENSE.txt
Example usage to scan LICENSE.txt, but only print the license IDs and positions of license matches:
$ license-scanner --quiet -f LICENSE.txt
Please give us feedback at: https://github.com/IBM/license-scanner/issues
license-scanner [flags]
-g, --acceptable Flag acceptable
--addAll string Add the licenses from SPDX unzipped release
-a, --addPattern string Add a new license pattern to the library, from SPDX
--configName string Base name for config file (default "config")
--configPath string Path to any config files
-c, --copyrights Flag copyrights
--custom string Custom templates to use (default "default")
-d, --debug Enable debug logging
--dir string A directory in which to identify licenses
-f, --file string A file in which to identify licenses
-x, --hash Output file hash
-h, --help help for license-scanner
-k, --keywords Flag keywords
-l, --license string Display match debugging for the given license
--list List the license templates to be used
-n, --normalized Flag normalized
-q, --quiet Set logging to quiet
--spdx string SPDX templates to use (default "default")