Use a sensible default for empty setup.py gen command

This commit is contained in:
Lonami Exo 2018-04-15 13:20:56 +02:00
parent 3ed81481f8
commit 5a8f825db8

View File

@ -62,7 +62,7 @@ def generate(which):
layer = find_layer(TLOBJECT_IN_TL) layer = find_layer(TLOBJECT_IN_TL)
if not which: if not which:
which.append('(empty)') which.extend(('tl', 'errors'))
clean = 'clean' in which clean = 'clean' in which
action = 'Cleaning' if clean else 'Generating' action = 'Cleaning' if clean else 'Generating'