18 lines
527 B
Python
18 lines
527 B
Python
|
|
# -*- coding: utf-8 -*-
|
||
|
|
|
||
|
|
from argparse import Namespace, ArgumentParser
|
||
|
|
|
||
|
|
from ..Cmd import Cmd
|
||
|
|
|
||
|
|
class CmdPkgConflicts(Cmd): # export
|
||
|
|
|
||
|
|
def __init__(self) -> None:
|
||
|
|
super().__init__('pkg-conflicts', help='Print packages conflicting with a given package')
|
||
|
|
|
||
|
|
def add_arguments(self, parser: ArgumentParser) -> None:
|
||
|
|
self.app.pkg_relations_add_arguments(parser)
|
||
|
|
super().add_arguments(parser)
|
||
|
|
|
||
|
|
|
||
|
|
def _run(self, args: Namespace) -> None:
|
||
|
|
return self.app.print_pkg_relations("conflicts", args)
|