Strategická: Klient je executable

This commit is contained in:
David Klement 2022-09-18 15:15:00 +02:00
parent 96202675e8
commit 0fd1240953

3
klient/client.py Normal file → Executable file
View file

@ -17,8 +17,7 @@ parser.add_argument("--server", type=str, default="http://localhost:5000", help=
parser.add_argument("--game", type=str, default="main", help="'main' or 'test_#'.")
parser.add_argument("--command", type=str, nargs="+", default=["python3", "%"], help="Command to execute as strategy code. Use '%' for program.")
parser.add_argument("--program", type=str, default=None, help="Program to substitute to command.")
parser.add_argument("--copy", default=False, action="store_true",
help="Save a copy of the program to ensure the same code is used all the time.")
parser.add_argument("--copy", default=False, action="store_true", help="Save a copy of the program to ensure the same code is used all the time.")
parser.add_argument("--log-level", type=str, default="info", choices=["error", "warning", "info"])
parser.add_argument("--save-state", type=str, default=None, help="Save state to this file.")