From ae768bc9758237bb6f99911dfa66ea5895bbca29 Mon Sep 17 00:00:00 2001 From: Marianne Chevrot Date: Sun, 25 Dec 2022 17:47:06 +0100 Subject: add list --not-installed --- gamechestcli/__main__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gamechestcli') diff --git a/gamechestcli/__main__.py b/gamechestcli/__main__.py index 22749bd..73d5bab 100755 --- a/gamechestcli/__main__.py +++ b/gamechestcli/__main__.py @@ -6,7 +6,7 @@ Usage: gamechest install gamechest remove gamechest run [--profile_id=] gamechest set [--profile_id=] [--remote_basedir=] [--gamesaves_path=] - gamechest list [--installed] + gamechest list [--installed|--not-installed] gamechest showconfig ''' @@ -51,7 +51,11 @@ def main(): game_db = GameDB() list_installed = list(status_db.get_installed()) for game_id in game_db.get_ids(): - print(game_id, 'installed:', game_id in list_installed) + if args['--not-installed']: + if game_id not in list_installed: + print(game_id) + else: + print(game_id, 'installed:', game_id in list_installed) elif args['showconfig']: config.print_config() -- cgit v1.2.3