diff --git a/dastworx/src/main.d b/dastworx/src/main.d index cc6fa7eb..60f9b2e5 100644 --- a/dastworx/src/main.d +++ b/dastworx/src/main.d @@ -42,7 +42,8 @@ void main(string[] args) source.put(buffer); if (!source.data.length) { - files = args[1].splitter(pathSeparator).array; + import std.file: exists; + files = args[1].splitter(pathSeparator).filter!exists.array; version(devel) writeln(files); } } diff --git a/dastworx/src/mainfun.d b/dastworx/src/mainfun.d index 8273b8a1..4285eb22 100644 --- a/dastworx/src/mainfun.d +++ b/dastworx/src/mainfun.d @@ -16,8 +16,8 @@ import * if the main is injected by a mixin template or by a string it is not detected, * if the main is deactivated by a static condition neither. * - * The result is used by to detect if the "-main" switch has to be passed to - * the compiler. + * The result is used to determine if the "-main" switch has to be passed to + * the compiler when a runnable module is executed or a module tested. */ void detectMainFun(const(Module) mod) {