[cli] Do not print empty info items

This commit is contained in:
derrod 2021-10-10 12:36:16 +02:00
parent 8da4b55987
commit 9693a0b8ff

View file

@ -1559,12 +1559,15 @@ class LegendaryCLI:
else: else:
print(f'- {item.name}: {item.value}') print(f'- {item.name}: {item.value}')
if info_items['game']:
print('\nGame Information:') print('\nGame Information:')
for info_item in info_items['game']: for info_item in info_items['game']:
print_info_item(info_item) print_info_item(info_item)
if info_items['install']:
print('\nInstallation information:') print('\nInstallation information:')
for info_item in info_items['install']: for info_item in info_items['install']:
print_info_item(info_item) print_info_item(info_item)
if info_items['manifest']:
print('\nManifest information:') print('\nManifest information:')
for info_item in info_items['manifest']: for info_item in info_items['manifest']:
print_info_item(info_item) print_info_item(info_item)