Adjust --group=id output format slightly

This commit is contained in:
dgelessus 2019-09-16 14:58:21 +02:00
parent c6337bdfbd
commit d7255bc977

View File

@ -406,7 +406,7 @@ def _list_resource_file(rf: api.ResourceFile, *, sort: bool, group: str, decompr
resources_by_id = {resid: list(reses) for resid, reses in itertools.groupby(all_resources, key=lambda res: res.id)}
print(f"{len(resources_by_id)} resource IDs:")
for resid, resources in resources_by_id.items():
print(f"{resid}: {len(resources)} resources:")
print(f"({resid}): {len(resources)} resources:")
if sort:
resources.sort(key=lambda res: res.type)
for res in resources: