CLI/compile: fail when some patterns aren't matched
CLI/Compile: added a test to showcase the new behaviour