From af53b74106c659328efa5be5077c021d3d07caa4 Mon Sep 17 00:00:00 2001 From: Whitebyte Date: Thu, 27 Aug 2015 20:43:10 +0600 Subject: [PATCH] Check args similar to tokenCount --- src/main.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(