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
7 changes: 7 additions & 0 deletions licomp_toolkit/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ def outbound_candidate(self, args):
args.provisioning,
licenses_to_check,
args.resources)
if args.least_compatible:
candidates.reverse()

formatter = LicompToolkitFormatter.formatter(args.output_format)

return formatter.format_licomp_licenses(candidates), ReturnCodes.LICOMP_OK.value, None
Expand Down Expand Up @@ -207,6 +210,10 @@ def main():
action='store_true',
help='Use all known licenses to identify outbound candidates',
default=False)
parser_ob.add_argument('-lc', '--least-compatible',
action='store_true',
help='Sort the license according to least compatibility (i.e. from restrictive to permissive. Default is to list permissive to restrictive.',
default=False)

# Command: list versions (of all toolkit and licomp resources)
parser_sr = subparsers.add_parser('versions', help='Output version of licomp-toolkit and all the licomp resources')
Expand Down