aureliojargas / clitest

Command Line Tester
MIT License
143 stars 12 forks source link

Fix leftover temporary directories #45

Closed vmmello closed 4 years ago

vmmello commented 4 years ago

Clitest leaves a few leftover temp directories when run, in some conditions.

Move the block of code that creates the temporary directory closer to the point when the directory is actually used. It was being created too early, making options like --help and --verbose to create directories unnecessarily and leave leftovers.

Fixes issue #44 .

aureliojargas commented 4 years ago

Nice finding, thanks @vmmello!