diff --git a/minitch.py b/minitch.py index 59b5052..5b9a659 100755 --- a/minitch.py +++ b/minitch.py @@ -109,7 +109,8 @@ def parser_run(args): # Run executable os.chdir(config['games'][args.game_id]['path']) os.chmod(config['games'][args.game_id]['executable'], 755) - subprocess.run(config['games'][args.game_id]['executable']) + game_args = config['games'][args.game_id]['args'] if 'args' in config['games'][args.game_id] else [] + subprocess.run([config['games'][args.game_id]['executable'], *game_args]) def parser_list(args): global config