Tool to automatically detect FLOSS licenses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

38 lines
1.3 KiB

6 years ago
  1. Tool to automatically detect FLOSS licenses.
  2. `license-finder` needs a folder with license files (defaults to `/usr/portage/licenses` for easy use on Gentoo).
  3. ## Usage
  4. license-finder <directory>
  5. Other options
  6. usage: license-finder [-h] [--licenses-dir LICENSES_DIR]
  7. [--min-ratio MIN_RATIO] [-n N]
  8. files_or_dirs [files_or_dirs ...]
  9. positional arguments:
  10. files_or_dirs
  11. optional arguments:
  12. -h, --help show this help message and exit
  13. --licenses-dir LICENSES_DIR
  14. Directory to look for licenses (default:
  15. /usr/portage/licenses)
  16. --min-ratio MIN_RATIO
  17. Minimum ratio to consider the file as a match
  18. (default: 0.8)
  19. -n N Show at most x matching licenses
  20. Example output:
  21. /tmp/license-finder/LICENSE.txt:
  22. ----------------------------------------------
  23. 97.791 %: /usr/portage/licenses/GPL-2 (+0 -0 ~4)
  24. 96.934 %: /usr/portage/licenses/GPL-2-with-font-exception (+0 -1 ~4)
  25. 96.093 %: /usr/portage/licenses/GPL-2-with-linking-exception (+0 -1 ~4)
  26. 95.954 %: /usr/portage/licenses/GPL-2-with-exceptions (+0 -1 ~4)
  27. 86.207 %: /usr/portage/licenses/kvirc (+0 -1 ~3)