mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-28 23:04:33 +02:00
Print a help message if no subcommand is specified for one of the comamnds "distro" and "projects". Signed-off-by: Jan Lindemann <jan@janware.com>
21 lines
551 B
Python
21 lines
551 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
import sys
|
|
from argparse import ArgumentParser
|
|
|
|
from ..App import App
|
|
from .Cmd import Cmd as CmdBase
|
|
|
|
class CmdProjects(CmdBase): # export
|
|
|
|
def __init__(self, parent: App) -> None:
|
|
super().__init__(parent, 'projects', help='Project metadata evaluation for building packages')
|
|
self._add_subcommands()
|
|
|
|
def add_arguments(self, p: ArgumentParser) -> None:
|
|
super().add_arguments(p)
|
|
|
|
async def _run(self, args):
|
|
# Missing subcommand
|
|
self.parser.print_help()
|
|
sys.exit(1)
|