# -*- coding: utf-8 -*- from argparse import Namespace, ArgumentParser from ..Cmd import Cmd from ..CmdProjects import CmdProjects class CmdLibname(Cmd): # export def __init__(self, parent: CmdProjects) -> None: super().__init__(parent, 'libname', help='libname') def add_arguments(self, parser: ArgumentParser) -> None: super().add_arguments(parser) parser.add_argument('module', nargs='*', help='Modules') def _run(self, args: Namespace) -> None: print(self.app.get_libname(args.module))