std.getopt
Trass3r
un at known.com
Fri Jul 15 16:34:42 PDT 2011
Why doesn't std.getopt support standard unix style like 'make -j 4'?
"uint timeout;
getopt(args, "timeout|t", &timeout);
To set timeout to 5, use either of the following: --timeout=5, --timeout
5, --t=5, --t 5, or -t5. Forms such as -t 5 and -timeout=5 will be not
accepted."
Also it doesn't make any sense to me that --t=5 and --t 5 is allowed in
this case.
I expected the short alias only to be used with a single dash.
More information about the Digitalmars-d
mailing list