mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[cli] Do not print empty info items
This commit is contained in:
parent
8da4b55987
commit
9693a0b8ff
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue