diff options
Diffstat (limited to 'gamechestcli')
-rwxr-xr-x | gamechestcli/__main__.py | 8 |
1 files changed, 6 insertions, 2 deletions
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 <GAME_ID> gamechest remove <GAME_ID> gamechest run [--profile_id=<PROFILE_ID>] <GAME_ID> gamechest set [--profile_id=<PROFILE_ID>] [--remote_basedir=<PATH>] [--gamesaves_path=<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() |