mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-29 06:04:34 +02:00
17 lines
461 B
Python
17 lines
461 B
Python
|
|
# -*- coding: utf-8 -*-
|
||
|
|
|
||
|
|
from argparse import Namespace, ArgumentParser
|
||
|
|
|
||
|
|
from ..Cmd import Cmd
|
||
|
|
|
||
|
|
class CmdTest(Cmd): # export
|
||
|
|
|
||
|
|
def __init__(self) -> None:
|
||
|
|
super().__init__('test', help='Test')
|
||
|
|
|
||
|
|
def add_arguments(self, parser: ArgumentParser) -> None:
|
||
|
|
super().add_arguments(parser)
|
||
|
|
parser.add_argument('blah', default='', help='The blah argument')
|
||
|
|
|
||
|
|
def _run(self, args: Namespace) -> None:
|
||
|
|
print("blah = " + args.blah)
|