1 |
douglas |
435 |
// Syncify |
2 |
|
|
// |
3 |
|
|
// Douglas Thrift |
4 |
|
|
// |
5 |
|
|
// $Id$ |
6 |
|
|
|
7 |
|
|
#include "Syncify.hpp" |
8 |
|
|
|
9 |
|
|
#include <menes-api/exename.hpp> |
10 |
|
|
#include <menes-app/simple.hpp> |
11 |
|
|
|
12 |
|
|
int Main(const app::Options& options) |
13 |
|
|
{ |
14 |
|
|
// |
15 |
|
|
|
16 |
|
|
_foreach (const app::ArgumentList, arg, app::GetArguments()) |
17 |
|
|
{ |
18 |
|
|
if (*arg == "-D") |
19 |
|
|
Syncify::debug = true; |
20 |
|
|
else |
21 |
|
|
{ |
22 |
|
|
api::Cerr << "Usage: " << Syncify::program << " [-D]" << ios::NewLine; |
23 |
|
|
|
24 |
|
|
return 1; |
25 |
|
|
} |
26 |
|
|
} |
27 |
|
|
|
28 |
|
|
// |
29 |
|
|
|
30 |
|
|
return 0; |
31 |
|
|
} |
32 |
|
|
|
33 |
|
|
extern "C" |
34 |
|
|
{ |
35 |
|
|
void authenticate(const char* srv, const char* shr, char* wg, int wglen, char* un, int unlen, char* pw, int pwlen) {} |
36 |
|
|
} |
37 |
|
|
|
38 |
|
|
ext::String Syncify::program(api::GetExecutablePath().GetName()); |
39 |
|
|
bool Syncify::debug(false); |