Skip to content

Commit

Permalink
Merge pull request #109 from Akarys42/patch-1
Browse files Browse the repository at this point in the history
Ignore spaces around fail-on and allow-only parameters
  • Loading branch information
raimon49 authored Aug 27, 2021
2 parents 5121c4c + 6e1e947 commit 5b6b9e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions piplicenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ def get_pkg_info(pkg):

fail_on_licenses = set()
if args.fail_on:
fail_on_licenses = set(args.fail_on.split(";"))
fail_on_licenses = set(map(str.strip, args.fail_on.split(";")))

allow_only_licenses = set()
if args.allow_only:
allow_only_licenses = set(args.allow_only.split(";"))
allow_only_licenses = set(map(str.strip, args.allow_only.split(";")))

for pkg in pkgs:
pkg_name = pkg.project_name
Expand Down

0 comments on commit 5b6b9e7

Please sign in to comment.