fix arg sanity check
This commit is contained in:
parent
a758374fdf
commit
63029e3d37
1 changed files with 1 additions and 1 deletions
2
cli/koji
2
cli/koji
|
|
@ -7123,7 +7123,7 @@ def handle_dist_repo(options, session, args):
|
|||
task_opts, args = parser.parse_args(args)
|
||||
if len(args) < 1:
|
||||
parser.error(_('You must provide a tag to generate the repo from'))
|
||||
if not task_opts.allow_unsigned:
|
||||
if len(args) < 2 and not task_opts.allow_unsigned:
|
||||
parser.error(_('Please specify one or more GPG key IDs (or --allow-unsigned)'))
|
||||
if task_opts.allow_unsigned and task_opts.skip_unsigned:
|
||||
parser.error(_('allow_unsigned and skip_unsigned are mutually exclusive'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue