diff options
| author | troido <troido@hotmail.com> | 2017-11-01 12:41:38 +0100 |
|---|---|---|
| committer | troido <troido@hotmail.com> | 2017-11-01 12:41:38 +0100 |
| commit | 1febf9663915304f9036acb23c0b6fe379c0f955 (patch) | |
| tree | 524ce558e1c9386b98cead79e638ac84531d39e3 /asciifarm/client/main.py | |
| parent | bcc306d36d639b0282c13ba25d187a22fb5e1d9f (diff) | |
messages can now be logged to a file
Diffstat (limited to 'asciifarm/client/main.py')
| -rwxr-xr-x | asciifarm/client/main.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/asciifarm/client/main.py b/asciifarm/client/main.py index baaf8d4..365c647 100755 --- a/asciifarm/client/main.py +++ b/asciifarm/client/main.py @@ -37,6 +37,7 @@ def main(argv=None): parser.add_argument("-s", "--socket", help="the socket type. 'unix' is unix domain sockets, 'abstract' is abstract unix domain sockets and 'inet' is inet sockets. ", choices=["abstract", "unix", "inet"], default="abstract") parser.add_argument('-k', '--keybindings', help='The file with the keybindings. If it is either of these names: {} it will be loaded from the keybindings directory.'.format(standardKeyFiles), default="default") parser.add_argument('-c', '--characters', help='The file with the character mappings for the graphics. If it is either of these names: {} it will be loaded from the charmaps directory.'.format(standardCharFiles), default="default") + parser.add_argument('-o', '--logfile', help='All game messages will be written to this file.'.format(standardCharFiles), default=None) colourGroup = parser.add_mutually_exclusive_group() colourGroup.add_argument('-l', '--colours', '--colors', help='enable colours! :)', action="store_true") @@ -69,5 +70,5 @@ def main(argv=None): elif args.nocolours: colours = False - clientmain(args.name, args.socket, address, keybindings, charMap, colours) + clientmain(args.name, args.socket, address, keybindings, charMap, colours, args.logfile) |
