diff --git a/src/main.d b/src/main.d index 366d9a3..dec230b 100644 --- a/src/main.d +++ b/src/main.d @@ -222,11 +222,11 @@ int main(string[] args) } else if (imports) { - const string[] fileNames = usingStdin ? ["stdin"] : args[1 .. $]; + string[] fileNames = usingStdin ? ["stdin"] : args[1 .. $]; LexerConfig config; config.stringBehavior = StringBehavior.source; auto visitor = new ImportPrinter; - foreach (name; fileNames) + foreach (name; expandArgs(fileNames)) { config.fileName = name; auto tokens = getTokensForParser(