Skip to content

Commit 3e69958

Browse files
committed
Merge pull request #7 from azerupi:verbose
2 parents fcd06df + efd82b0 commit 3e69958

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

AIproject/kingandassassins.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,13 @@ def _nextmove(self, state):
127127
server_parser = subparsers.add_parser('server', help='launch a server')
128128
server_parser.add_argument('--host', help='hostname (default: localhost)', default='localhost')
129129
server_parser.add_argument('--port', help='port to listen on (default: 5000)', default=5000)
130-
server_parser.add_argument('--verbose', action='store_true')
131-
130+
server_parser.add_argument('-v', '--verbose', action='store_true')
132131
# Create the parser for the 'client' subcommand
133132
client_parser = subparsers.add_parser('client', help='launch a client')
134133
client_parser.add_argument('name', help='name of the player')
135134
client_parser.add_argument('--host', help='hostname of the server (default: localhost)', default='localhost')
136135
client_parser.add_argument('--port', help='port of the server (default: 5000)', default=5000)
137-
client_parser.add_argument('--verbose', action='store_true')
138-
136+
client_parser.add_argument('-v', '--verbose', action='store_true')
139137
# Parse the arguments of sys.args
140138
args = parser.parse_args()
141139

0 commit comments

Comments
 (0)