ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Iffy/Iffy.cpp
(Generate patch)

Comparing Iffy/Iffy.cpp (file contents):
Revision 340 by douglas, 2004-12-13T16:13:09-08:00 vs.
Revision 341 by douglas, 2004-12-15T00:32:00-08:00

# Line 19 | Line 19 | struct IffyCommand : public app::Applica
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                          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines