Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions licomp_toolkit/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def supported_provisionings(self, args):

def simplify(self, args):
formatter = LicompToolkitFormatter.formatter(args.output_format)
normalized = self.__normalize_license(args.license)
normalized = self.__normalize_license(' ' .join(args.license))
simplified = self.licomp_toolkit.simplify(normalized)
return formatter.format_licomp_licenses(simplified), ReturnCodes.LICOMP_OK.value, None

Expand Down Expand Up @@ -186,7 +186,7 @@ def main():
# Command: list supported
parser_si = subparsers.add_parser('simplify', help='Normalize and simplify a license expression')
parser_si.set_defaults(which="simplify", func=lct_parser.simplify)
parser_si.add_argument("license")
parser_si.add_argument("license", type=str, nargs="+", help='License expression to simplify')

parser_sr = subparsers.add_parser('supported-resources', help='List all supported Licomp resources')
parser_sr.set_defaults(which="supported_resources", func=lct_parser.supported_resources)
Expand Down