Skip to content

Commit 2b2e91f

Browse files
committed
[cli] Add --show-dirs option to print install directory
1 parent 8ad6cd1 commit 2b2e91f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

legendary/cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ def list_installed(self, args):
198198

199199
print(f' * {game.title} (App name: {game.app_name} | Version: {game.version} | '
200200
f'{game.install_size / (1024*1024*1024):.02f} GiB)')
201+
if args.include_dir:
202+
print(f' + Location: {game.install_path}')
201203
if versions[game.app_name] != game.version:
202204
print(f' -> Update available! Installed: {game.version}, Latest: {versions[game.app_name]}')
203205

@@ -1074,6 +1076,8 @@ def main():
10741076
help='List games in CSV format')
10751077
list_installed_parser.add_argument('--tsv', dest='tsv', action='store_true',
10761078
help='List games in TSV format')
1079+
list_installed_parser.add_argument('--show-dirs', dest='include_dir', action='store_true',
1080+
help='Print installation directory in output')
10771081

10781082
list_files_parser.add_argument('--force-download', dest='force_download', action='store_true',
10791083
help='Always download instead of using on-disk manifest')

0 commit comments

Comments
 (0)