File: rott.py

package info (click to toggle)
game-data-packager 73
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm
  • size: 23,420 kB
  • sloc: python: 11,086; sh: 609; makefile: 59
file content (22 lines) | stat: -rw-r--r-- 720 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/python3
# encoding=utf-8
#
# Copyright © 2014 Simon McVittie <smcv@debian.org>
# SPDX-License-Identifier: GPL-2.0-or-later

import logging

from ..game import (GameData)

logger = logging.getLogger(__name__)

class ROTTGameData(GameData):
    def add_parser(self, parsers, base_parser):
        parser = super(ROTTGameData, self).add_parser(parsers, base_parser)
        parser.add_argument('-f', dest='download', action='store_false',
                help='Require 1rott13.zip on the command line')
        parser.add_argument('-w', dest='download', action='store_true',
                help='Download 1rott13.zip (done automatically if necessary)')
        return parser

GAME_DATA_SUBCLASS = ROTTGameData