from argparse import ArgumentParser, Namespace from .Cmd import Cmd, Parent class CmdTmplDir(Cmd): # export def __init__(self, parent: Parent) -> None: super().__init__( parent, 'tmpl-dir', help = 'Print directory containing templates of a given module', ) def add_arguments(self, parser: ArgumentParser) -> None: super().add_arguments(parser) parser.add_argument('module', nargs = '*', help = 'Modules') async def _run(self, args: Namespace) -> None: r = [] for m in args.module: r.append(self.app.tmpl_dir(m)) print(' '.join(r))