You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Source/launcher/subparsers/args_launch_mode/player.py
+19-27Lines changed: 19 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
# Standard library imports
2
2
importargparse
3
+
importitertools
3
4
importlogger
4
5
5
6
# Local application imports
@@ -18,36 +19,36 @@ def _(
18
19
subparser.add_argument(
19
20
'--rcc_host', '--host', '-rh', '-h',
20
21
type=str,
21
-
nargs='?',
22
-
default=None,
22
+
nargs='*',
23
+
default=[],
23
24
help='Hostname or IP address to connect this program to the RCC server.',
24
25
)
25
26
subparser.add_argument(
26
27
'--rcc_port', '--port', '-rp', '-p',
27
28
type=int,
28
-
nargs='?',
29
-
default=None,
29
+
nargs='*',
30
+
default=[],
30
31
help='Port number to connect this program to the RCC server.',
31
32
)
32
33
subparser.add_argument(
33
34
'--web_host', '--webserver_host', '-wh',
34
35
type=str,
35
-
nargs='?',
36
-
default=None,
36
+
nargs='*',
37
+
default=[],
37
38
help='Hostname or IP address to connect this program to the web server.',
38
39
)
39
40
subparser.add_argument(
40
41
'--web_port', '--webserver_port', '-wp',
41
42
type=int,
42
-
nargs='?',
43
-
default=None,
43
+
nargs='*',
44
+
default=[],
44
45
help='Port number to connect this program to the web server.',
45
46
)
46
47
subparser.add_argument(
47
48
'--user_code', '-u',
48
49
type=str,
49
-
nargs='?',
50
-
default=None,
50
+
nargs='*',
51
+
default=[],
51
52
help='Determines the user code for the player which joins the server.\nUser codes derive a user name, user iden number, and other characteristics of any particular player.',
52
53
)
53
54
subparser.add_argument(
@@ -58,7 +59,7 @@ def _(
58
59
subparser.add_argument(
59
60
'--loud',
60
61
action='store_true',
61
-
help='Makes the client\'s output file log very verbosely.',
62
+
help='Makes the client\'s output log file very verbose.',
0 commit comments