19 |
|
#include <unistd.h> |
20 |
|
} |
21 |
|
|
22 |
< |
int main(int argc, char* argv[]) |
22 |
> |
int zoe(const std::vector<const char*> args) |
23 |
|
{ |
24 |
< |
Zoe::program = argv[0]; |
24 |
> |
Zoe::program = args[0]; |
25 |
|
|
26 |
< |
for (int index(1); index < argc; ++index) |
26 |
> |
for (int index(1); index < args.size(); ++index) |
27 |
|
{ |
28 |
< |
ext::String arg(argv[index]); |
28 |
> |
ext::String arg(args[index]); |
29 |
|
Matcher matcher; |
30 |
|
|
31 |
|
if (arg == matcher("^-config=(.*)$")) |
56 |
|
return 0; |
57 |
|
} |
58 |
|
|
59 |
+ |
int main(int argc, char* argv[]) |
60 |
+ |
{ |
61 |
+ |
std::vector<const char*> args(argv, argv + argc); |
62 |
+ |
|
63 |
+ |
return app::be::ThreadMain_(etl::BindAll(&zoe, args)); |
64 |
+ |
} |
65 |
+ |
|
66 |
|
Zoe::Zoe() |
67 |
|
{ |
68 |
|
if (!(collector || publisher)) usage(); |
166 |
|
++buddy) |
167 |
|
{ |
168 |
|
Buddy buddy_(**buddy/"login", **buddy/"rss", **buddy/"atom", |
169 |
< |
!(**buddy/"link").IsEmpty() ? **buddy/"link" : link); |
169 |
> |
!(**buddy/"link").IsEmpty() ? **buddy/"link" : (link |
170 |
> |
+ std::string(**buddy/"login") + ".html")); |
171 |
|
|
172 |
|
this->buddies.insert(buddy_); |
173 |
|
} |