GetOpt with attributes

Code



Compilation output:

getopt(args, "v|verbose" , &ret.verbose, "f|file" , &ret.file, "n|number" , &ret.n);


Application output:

MyOptions(false, "abc.txt", 0)


Application arguments:

--file=abc.txt

Paste info


Author: robik
Views: 1681
Private: no
Expires: Never
Uploaded: 12.11.12 17:53
Votes: 0

Compilation


Compiler: DMD 2.x Gi
Pointer size: m64