CLI: [list-tag-inheritance] Clear Error with removed --stop/--jump opts

This commit is contained in:
Yu Ming Zhu 2021-09-25 06:10:34 +00:00 committed by Tomas Kopecek
parent f8464a1f32
commit b864f3d440

View file

@ -4403,6 +4403,9 @@ def anon_handle_list_tag_inheritance(goptions, session, args):
(options, args) = parser.parse_args(args)
if len(args) != 1:
parser.error(_("This command takes exactly one argument: a tag name or ID"))
for deprecated in ('stop', 'jump'):
if getattr(options, deprecated):
parser.error(_("--%s option has been removed in 1.26") % deprecated)
ensure_connection(session, goptions)
event = koji.util.eventFromOpts(session, options)
if event: