mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
[cli] Do not print empty info items
This commit is contained in:
parent
8da4b55987
commit
9693a0b8ff
|
@ -1559,15 +1559,18 @@ class LegendaryCLI:
|
|||
else:
|
||||
print(f'- {item.name}: {item.value}')
|
||||
|
||||
print('\nGame Information:')
|
||||
for info_item in info_items['game']:
|
||||
print_info_item(info_item)
|
||||
print('\nInstallation information:')
|
||||
for info_item in info_items['install']:
|
||||
print_info_item(info_item)
|
||||
print('\nManifest information:')
|
||||
for info_item in info_items['manifest']:
|
||||
print_info_item(info_item)
|
||||
if info_items['game']:
|
||||
print('\nGame Information:')
|
||||
for info_item in info_items['game']:
|
||||
print_info_item(info_item)
|
||||
if info_items['install']:
|
||||
print('\nInstallation information:')
|
||||
for info_item in info_items['install']:
|
||||
print_info_item(info_item)
|
||||
if info_items['manifest']:
|
||||
print('\nManifest information:')
|
||||
for info_item in info_items['manifest']:
|
||||
print_info_item(info_item)
|
||||
else:
|
||||
json_out = dict(game=dict(), install=dict(), manifest=dict())
|
||||
for info_item in info_items['game']:
|
||||
|
|
Loading…
Reference in a new issue