diff options
author | Marianne Chevrot <blackmoor+git@devys.org> | 2022-12-25 17:47:06 +0100 |
---|---|---|
committer | Marianne Chevrot <blackmoor+git@devys.org> | 2022-12-25 17:47:06 +0100 |
commit | ae768bc9758237bb6f99911dfa66ea5895bbca29 (patch) | |
tree | 514ffd20270ad91092f9f16f2d9107b8caa878cc | |
parent | c02177e4967c63b579b4b936b8f8f87663a4560a (diff) | |
download | gamechest-ae768bc9758237bb6f99911dfa66ea5895bbca29.tar.gz gamechest-ae768bc9758237bb6f99911dfa66ea5895bbca29.tar.bz2 gamechest-ae768bc9758237bb6f99911dfa66ea5895bbca29.zip |
add list --not-installed
-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() |