a custom name must be provided for labels or collections

This commit is contained in:
blacktwin 2020-03-12 15:50:59 -04:00
parent 0100aa4246
commit 5f942142f3

View File

@ -848,6 +848,10 @@ if __name__ == "__main__":
# Setting custom name if provided
if opts.name:
title = opts.name
elif not opts.name and opts.jbop in ['collection', 'label']:
logger.error("If using --jbop collection or label, "
"you must provide a custom name")
exit()
if opts.jbop and opts.action == 'show':
if len(libraries) > 0: