From 25f1ab7f1e540b7f20cbf2cd9fb45bb2194312b3 Mon Sep 17 00:00:00 2001 From: kiankyars <69437137+kiankyars@users.noreply.github.com> Date: Tue, 19 Aug 2025 21:34:24 +0300 Subject: [PATCH] runner requirement (#310) --- fle/run.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/fle/run.py b/fle/run.py index 16596ec0..6d0110b6 100644 --- a/fle/run.py +++ b/fle/run.py @@ -57,7 +57,7 @@ def main(): formatter_class=argparse.RawDescriptionHelpFormatter, epilog=""" Examples: - fle eval --config configs/gym_run_config.json + fle eval --config configs/gym_run_config.json --offset n fle cluster [start|stop|restart|help] [-n N] [-s SCENARIO] """, ) @@ -68,24 +68,21 @@ Examples: parser_cluster.add_argument( "cluster_command", nargs="?", - default=None, choices=["start", "stop", "restart", "help"], help="Cluster command (start/stop/restart/help)", ) - parser_cluster.add_argument( - "-n", type=int, default=None, help="Number of Factorio instances" - ) + parser_cluster.add_argument("-n", type=int, help="Number of Factorio instances") parser_cluster.add_argument( "-s", type=str, - default=None, help="Scenario (open_world or default_lab_scenario)", ) parser_eval = subparsers.add_parser("eval", help="Run experiment") - parser_eval.add_argument("--config", required=False, help="Path to run config JSON") + parser_eval.add_argument("--config", required=True, help="Path to run config JSON") parser_eval.add_argument( "--offset", type=int, + required=True, help="Offset to add to instance_id selection", ) args = parser.parse_args()