13 lines
375 B
Python
13 lines
375 B
Python
from cliff.command import Command
|
|
import dcc.config
|
|
import subprocess
|
|
|
|
class Play(Command):
|
|
def get_parser(self, prog_name):
|
|
parser = super().get_parser(prog_name)
|
|
parser.add_argument('wad')
|
|
parser.add_argument('map')
|
|
return parser
|
|
|
|
def take_action(self, parsed_args):
|
|
subprocess.run([dcc.config.DSDA] + dcc.config.DsdaPreamble(parsed_args.wad, parsed_args.map))
|