jw-pkg/src/python/jw/pkg/cmds/projects/CmdLibname.py

18 lines
546 B
Python
Raw Normal View History

# -*- 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')
async def _run(self, args: Namespace) -> None:
print(self.app.get_libname(args.module))