check options for list-signed

Fixes: https://pagure.io/koji/issue/1552
This commit is contained in:
Tomas Kopecek 2019-08-28 10:42:18 +02:00
parent 79921c8922
commit b1db812e47

View file

@ -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 = {}