PR#1631: check options for list-signed
Merges #1631 https://pagure.io/koji/pull-request/1631 Fixes: #1552 https://pagure.io/koji/issue/1552 CLI command koji list-signed returns none
This commit is contained in:
commit
d3ef006842
1 changed files with 2 additions and 0 deletions
|
|
@ -2040,6 +2040,8 @@ def handle_list_signed(goptions, session, args):
|
|||
parser.add_option("--rpm", help=_("Only list signed copies for this RPM"))
|
||||
parser.add_option("--tag", help=_("Only list RPMs within this tag"))
|
||||
(options, args) = parser.parse_args(args)
|
||||
if not options.build and not options.tag and not options.rpm:
|
||||
parser.error(_("At least one from --build, --rpm, --tag needs to be specified."))
|
||||
activate_session(session, goptions)
|
||||
qopts = {}
|
||||
build_idx = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue