diff options
| author | troido <troido@protonmail.com> | 2020-04-18 11:43:19 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-18 11:43:19 +0200 |
| commit | 311a6f1b412c63e56740ab770a31534c3d7ce3f9 (patch) | |
| tree | 811d735292f5179a594edd5846eaf1cf1082e5ee /asciifarmclient/parseargs.py | |
| parent | c613f7db24a0bfa662d596778cb3cbaf8f3e1d80 (diff) | |
added --reset-style and --blink-bright-background command line arguments
Diffstat (limited to 'asciifarmclient/parseargs.py')
| -rw-r--r-- | asciifarmclient/parseargs.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/asciifarmclient/parseargs.py b/asciifarmclient/parseargs.py index a8b393b..db63d46 100644 --- a/asciifarmclient/parseargs.py +++ b/asciifarmclient/parseargs.py @@ -29,6 +29,8 @@ def parse_args(argv): parser.add_argument('-k', '--keybindings', help='The file with the keybinding configuration. This file is a JSON file.', 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(list(loaders.standardCharFiles.keys())), default="default") parser.add_argument('-o', '--logfile', help='All game messages will be written to this file.', default=None) + parser.add_argument('--reset-style', help='Reset the style when it changes. Useful on some terminals', action="store_true") + parser.add_argument('--blink-bright-background', help='Use blink attribute to make background brighter. Useful for terminals that don\'t have bright backgrounds usually. Implies --reset-style', action="store_true") colourGroup = parser.add_mutually_exclusive_group() colourGroup.add_argument('-l', '--colours', '--colors', help='enable colours! :)', action="store_true") @@ -63,4 +65,4 @@ def parse_args(argv): else: name = username - return (name, args.socket, address, keybindings, charmap, colours, args.logfile) + return (name, args.socket, address, keybindings, charmap, colours, args.logfile, {"always_reset": args.reset_style, "blink_bright_background": args.blink_bright_background}) |
