Check for empty files
This commit is contained in:
parent
11487cd835
commit
2bc948567e
@ -126,7 +126,14 @@ func draw_tree(file:Text, dependencies:{Text:{Text}}):
|
||||
_draw_tree(child, dependencies, already_printed=&printed, is_last=is_child_last)
|
||||
|
||||
func main(files:[Text]):
|
||||
for f,file in files:
|
||||
if files.length == 0:
|
||||
say("
|
||||
Please provide at least one file!
|
||||
$_USAGE
|
||||
")
|
||||
return
|
||||
|
||||
for file in files:
|
||||
if not file:matches($/{..}.tm/):
|
||||
say("$\x1b[2mSkipping $file$\x1b[m")
|
||||
skip
|
||||
|
Loading…
Reference in New Issue
Block a user