[Issue 9344] New: A program takes a console comand as an argument.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 17 22:50:54 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9344
Summary: A program takes a console comand as an argument.
Product: D
Version: D2
Platform: x86
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: yolkati at gmail.com
--- Comment #0 from yolkati at gmail.com 2013-01-17 22:50:53 PST ---
import std.stdio;
int main(char[][] p_Args)
{
foreach(char[] l_Arg; p_Args)
{
writefln("Argument '%s'", l_Arg);
}
return 0;
}
/+
Input and output example:
$ ./a.out MY NAME HERE
Argument './a.out'
Argument 'MY'
Argument 'NAME'
Argument 'HERE'
On Ubuntu 12.10 compiled with gdc,the version that can be found on its
repositories.
+/
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list