diff options
author | vg <vgm+dev@devys.org> | 2024-05-24 16:54:07 +0200 |
---|---|---|
committer | vg <vgm+dev@devys.org> | 2024-05-24 16:54:07 +0200 |
commit | e12b3e67b10b3615b28362c7baa6bb4bcdf7d927 (patch) | |
tree | a542731c81d65b6da11fbd54e18cd7d7adb67255 | |
parent | 89d047893708e04a6cbef96bd25d392497524788 (diff) | |
download | gamechest-e12b3e67b10b3615b28362c7baa6bb4bcdf7d927.tar.gz gamechest-e12b3e67b10b3615b28362c7baa6bb4bcdf7d927.tar.bz2 gamechest-e12b3e67b10b3615b28362c7baa6bb4bcdf7d927.zip |
git-sync on seele
-rwxr-xr-x | gamechestcli/__main__.py | 3 | ||||
-rw-r--r-- | gamechestcli/gamechest/cliactions/run.py | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gamechestcli/__main__.py b/gamechestcli/__main__.py index 73d5bab..8452b99 100755 --- a/gamechestcli/__main__.py +++ b/gamechestcli/__main__.py @@ -9,6 +9,9 @@ Usage: gamechest install <GAME_ID> gamechest list [--installed|--not-installed] gamechest showconfig +Options: + --profile_id=<PROFILE_ID>, -p <PROFILE_ID> + use profile <PROFILE_ID> instead of the default one. ''' import sys diff --git a/gamechestcli/gamechest/cliactions/run.py b/gamechestcli/gamechest/cliactions/run.py index cf5ac43..1c55cc4 100644 --- a/gamechestcli/gamechest/cliactions/run.py +++ b/gamechestcli/gamechest/cliactions/run.py @@ -1,3 +1,4 @@ +import os import subprocess import sys from pathlib import Path @@ -25,7 +26,7 @@ def run_game(game_db, profile_id, game_info): try: profile_lockdir.mkdir(parents=True, exist_ok=False) except FileExistsError: - print('ERROR: profile is already locked, {profile_lockdir}', + print(f'ERROR: profile is already locked, {profile_lockdir}', file=sys.stderr) sys.exit(1) try: @@ -40,7 +41,7 @@ def run_game(game_db, profile_id, game_info): ) finally: profile_lockdir.rmdir() - print('INFO: {profile_lockdir} removed') + print(f'INFO: {profile_lockdir} removed') def run(game_id, profile_id): |