Browse Source

Strategická: Klient je executable

master
David Klement 2 years ago
parent
commit
0fd1240953
  1. 3
      klient/client.py

3
klient/client.py

@ -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("--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("--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("--program", type=str, default=None, help="Program to substitute to command.")
parser.add_argument("--copy", default=False, action="store_true", 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.")
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("--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.") parser.add_argument("--save-state", type=str, default=None, help="Save state to this file.")

Loading…
Cancel
Save