more detailed help for block-group-pkg
This commit is contained in:
parent
4ad8a0ec28
commit
fb7e9c1743
2 changed files with 4 additions and 0 deletions
|
|
@ -2639,6 +2639,8 @@ def handle_add_group_pkg(goptions, session, args):
|
|||
def handle_block_group_pkg(goptions, session, args):
|
||||
"[admin] Block a package from a group's package listing"
|
||||
usage = _("usage: %prog block-group-pkg [options] <tag> <group> <pkg> [<pkg>...]")
|
||||
usage += '\n' + _("Note, that blocking is propagated through inheritance chain, so "
|
||||
"it is not exactly the same as package removal.")
|
||||
usage += _("\n(Specify the --help global option for a list of other help options)")
|
||||
parser = OptionParser(usage=usage)
|
||||
(options, args) = parser.parse_args(args)
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ class TestBlockGroupPkg(utils.CliTestCase):
|
|||
self.activate_session = mock.patch('koji_cli.commands.activate_session').start()
|
||||
|
||||
self.error_format = """Usage: %s block-group-pkg [options] <tag> <group> <pkg> [<pkg>...]
|
||||
Note, that blocking is propagated through inheritance chain, so it is not exactly the same as package removal.
|
||||
(Specify the --help global option for a list of other help options)
|
||||
|
||||
%s: error: {message}
|
||||
|
|
@ -55,6 +56,7 @@ class TestBlockGroupPkg(utils.CliTestCase):
|
|||
self.assert_help(
|
||||
handle_block_group_pkg,
|
||||
"""Usage: %s block-group-pkg [options] <tag> <group> <pkg> [<pkg>...]
|
||||
Note, that blocking is propagated through inheritance chain, so it is not exactly the same as package removal.
|
||||
(Specify the --help global option for a list of other help options)
|
||||
|
||||
Options:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue