Closed hesa closed 9 months ago
New option: --licenses-allowed-file, -laf
--licenses-allowed-file
-laf
With this option you can pass a list of licenses to (only) allow as outbound licenses.
This option cannot be used together with --licenses-denied-file, -ldf. Doing so, results in an error.
--licenses-denied-file
-ldf
Examples:
Without any licenses to allow/deny:
$ flict -of text outbound-candidate "MIT OR BSD-3-Clause AND (X11)" BSD-3-Clause, MIT, X11
Denying MIT using example-data/denied-licenses.json:
MIT
example-data/denied-licenses.json
$ cat example-data/denied-licenses.json { "licenses_denied": [ "MIT" ] } $ flict -of text -ldf example-data/denied-licenses.json outbound-candidate "MIT OR BSD-3-Clause AND (X11)" BSD-3-Clause, X11
Allowing MIT using the file example-data/allowed-licenses.json:
example-data/allowed-licenses.json
$ cat example-data/allowed-licenses.json { "licenses_allowed": [ "MIT" ] } $ flict -of text -laf example-data/allowed-licenses.json outbound-candidate "MIT OR BSD-3-Clause AND (X11)" MIT
New option:
--licenses-allowed-file
,-laf
With this option you can pass a list of licenses to (only) allow as outbound licenses.
This option cannot be used together with
--licenses-denied-file
,-ldf
. Doing so, results in an error.Examples:
Without any licenses to allow/deny:
Denying
MIT
usingexample-data/denied-licenses.json
:Allowing
MIT
using the fileexample-data/allowed-licenses.json
: