a custom name must be provided for labels or collections
This commit is contained in:
parent
0100aa4246
commit
5f942142f3
@ -848,6 +848,10 @@ if __name__ == "__main__":
|
|||||||
# Setting custom name if provided
|
# Setting custom name if provided
|
||||||
if opts.name:
|
if opts.name:
|
||||||
title = 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 opts.jbop and opts.action == 'show':
|
||||||
if len(libraries) > 0:
|
if len(libraries) > 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user