Skip to content

Commit

Permalink
by default, do not relicense when using flict simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmehl committed Aug 13, 2024
1 parent b1c1659 commit 1011c64
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions complassist/_flict.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ def _run_flict(
return ret.stdout.decode("UTF-8").strip()


def flict_simplify(expression: str, output_format: str) -> str:
def flict_simplify(expression: str, output_format: str, no_relicensing: bool = True) -> str:
"""Simplify a license expression using flict"""
simplified = _run_flict("simplify", expression, options=["-of", output_format])
options = ["-of", output_format]
if no_relicensing:
options.append("-nr")
simplified = _run_flict("simplify", expression, options=options)

logging.debug("Simplified '%s' to '%s' using flict", expression, simplified)

Expand Down

0 comments on commit 1011c64

Please sign in to comment.