diff options
-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): |