From 79701fd8e015ed390bbe1ed1a2c59d2d70aae1e9 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Aug 28 2019 08:43:50 +0000 Subject: check options for list-signed Fixes: https://pagure.io/koji/issue/1552 --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index c1f84ea..103484d 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -2027,6 +2027,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 = {}