19 |
|
|
20 |
|
ext::String in("-"), out("-"); |
21 |
|
|
22 |
< |
for (size_t index(0); index < args.GetSize(); ++index) |
22 |
> |
_foreach (app::ArgumentList, arg, args) |
23 |
|
{ |
24 |
|
Matcher matcher; |
25 |
|
|
26 |
< |
if (args[index] == "-D") |
26 |
> |
if (*arg == "-D") |
27 |
|
{ |
28 |
|
if (!Iffy::debug) Iffy::debug = true; |
29 |
|
} |
30 |
< |
else if (args[index] == matcher("^-in=(.+)$")) |
30 |
> |
else if (*arg == matcher("^-in=(.*)$")) |
31 |
|
{ |
32 |
|
in = matcher[1]; |
33 |
|
} |
34 |
< |
else if (args[index] == matcher("^-out=(.+)$")) |
34 |
> |
else if (*arg == matcher("^-out=(.*)$")) |
35 |
|
{ |
36 |
|
out = matcher[1]; |
37 |
|
} |