Don't filter files on the command line by extension
This commit is contained in:
parent
75a6436f58
commit
47ecddd30a
2
main.d
2
main.d
|
@ -251,7 +251,7 @@ string[] expandArgs(string[] args)
|
||||||
args ~= ".";
|
args ~= ".";
|
||||||
foreach (arg; args[1 ..$])
|
foreach (arg; args[1 ..$])
|
||||||
{
|
{
|
||||||
if (isFile(arg) && (arg.endsWith(`.d`) || arg.endsWith(`.di`)))
|
if (isFile(arg))
|
||||||
rVal ~= arg;
|
rVal ~= arg;
|
||||||
else foreach (item; dirEntries(arg, SpanMode.breadth).map!(a => a.name))
|
else foreach (item; dirEntries(arg, SpanMode.breadth).map!(a => a.name))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue