Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Latest commit

 

History

History
50 lines (35 loc) · 1.62 KB

license-scanner.md

File metadata and controls

50 lines (35 loc) · 1.62 KB

license-scanner

license-scanner: scan files to detect licenses

Synopsis

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]

Options

  -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")
Auto generated by spf13/cobra on 6-Oct-2022