This commit is contained in:
Hackerpilot 2016-06-10 15:28:50 -07:00
parent 2b5e765f85
commit d7ab1023a7
1 changed files with 2 additions and 2 deletions

View File

@ -264,12 +264,12 @@ else
}
else if (imports)
{
string[] fileNames = usingStdin ? ["stdin"] : args[1 .. $];
string[] fileNames = usingStdin ? ["stdin"] : expandArgs(args);
RollbackAllocator rba;
LexerConfig config;
config.stringBehavior = StringBehavior.source;
auto visitor = new ImportPrinter;
foreach (name; expandArgs(fileNames))
foreach (name; fileNames)
{
config.fileName = name;
auto tokens = getTokensForParser(usingStdin ? readStdin()