summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarianne Chevrot <blackmoor+git@devys.org>2022-12-25 17:47:06 +0100
committerMarianne Chevrot <blackmoor+git@devys.org>2022-12-25 17:47:06 +0100
commitae768bc9758237bb6f99911dfa66ea5895bbca29 (patch)
tree514ffd20270ad91092f9f16f2d9107b8caa878cc
parentc02177e4967c63b579b4b936b8f8f87663a4560a (diff)
downloadgamechest-ae768bc9758237bb6f99911dfa66ea5895bbca29.tar.gz
gamechest-ae768bc9758237bb6f99911dfa66ea5895bbca29.tar.bz2
gamechest-ae768bc9758237bb6f99911dfa66ea5895bbca29.zip
add list --not-installed
-rwxr-xr-xgamechestcli/__main__.py8
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()