warning for both cli and config file option

This commit is contained in:
Yu Ming Zhu 2020-05-15 13:12:20 +00:00 committed by Tomas Kopecek
parent 80cf5ac94a
commit 21ff8143c4
2 changed files with 6 additions and 3 deletions

View file

@ -150,6 +150,9 @@ def get_options():
help=_("list commands"))
(options, args) = parser.parse_args()
if options.ca:
koji.util.deprecated("--ca option is deprecated and will be removed in 1.24")
# load local config
try:
result = koji.read_config(options.profile, user_config=options.configFile)
@ -168,9 +171,6 @@ def get_options():
value = os.path.expanduser(getattr(options, name))
setattr(options, name, value)
if options.ca:
koji.util.deprecated("--ca option is deprecated and will be removed in 1.24")
# honor topdir
if options.topdir:
koji.BASEDIR = options.topdir