October 25, 2008
Bill Baxter Wrote:

> import std.stdio;
> void main(string[] args) {  writefln("Args: %s", args); }
> And passing it some wildcards.  It never expands anything.  Only thing it does do is mess with quotes some.  Here's an example:
> C:\> args.exe * "C:\Program Files" *.* c:\*
> Args: [args,*,C:\Program Files,*.*,c:\*]

It's not windows, it's program's standard startup module gets command line with GetCommandLine() and parses it into string[] args.
Top | Discussion index | About this forum | D home