27 |
|
else |
28 |
|
{ |
29 |
|
cerr << "Usage: " << Zoe::program << " [-config=config] [-D]\n"; |
30 |
+ |
|
31 |
+ |
return 1; |
32 |
|
} |
33 |
|
} |
34 |
|
|
42 |
|
configure(); |
43 |
|
|
44 |
|
// This is just to figure out Jay's XML output, seems to have worked! |
45 |
< |
xml::TextWriter rss(api::Cout.GetStream()); |
45 |
> |
// It should really go in Rss.cpp later |
46 |
> |
api::FileOutputStream fout; |
47 |
> |
|
48 |
> |
if (this->rss != "-") fout.Open(this->rss); // need to ask Jay "Why?" |
49 |
> |
|
50 |
> |
xml::TextWriter rss(this->rss != "-" ? /*api::FileOutputStream(this->rss)*/ |
51 |
> |
fout : api::Cout.GetStream()); |
52 |
|
xml::ScopeElement root(rss, "rss"); |
53 |
|
|
54 |
|
rss.SetAttribute("version", "2.0"); |