3 |
|
|
4 |
#include "version.h" |
#include "version.h" |
5 |
|
|
6 |
|
#include <stdlib.h> |
7 |
#include <string> |
#include <string> |
8 |
#include <iostream> |
#include <iostream> |
9 |
#include <iomanip> |
#include <iomanip> |
15 |
#include "PluginManager.h" |
#include "PluginManager.h" |
16 |
|
|
17 |
using namespace std; |
using namespace std; |
18 |
const char* Months[] = { "", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov","Dec"}; |
const char* Months[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov","Dec"}; |
19 |
|
|
20 |
Common* Common::instance() |
Common* Common::instance() |
21 |
{ |
{ |
85 |
|
|
86 |
void Common::printUsage() |
void Common::printUsage() |
87 |
{ |
{ |
88 |
cout << VERSION << endl << endl; |
cout << VERSION << endl; |
89 |
|
cout << SVNVERSION << endl << endl; |
90 |
cout << "Usage --daemon|--debug [arguments]" << endl; |
cout << "Usage --daemon|--debug [arguments]" << endl; |
91 |
cout << "Commandline arguments :" << endl; |
cout << "Commandline arguments :" << endl; |
92 |
cout << " --daemon : Run in daemon (background) mode" << endl; |
cout << " --daemon : Run in daemon (background) mode" << endl; |
122 |
} |
} |
123 |
else |
else |
124 |
{ |
{ |
125 |
cout << VERSION; |
cout << "Unknown argument : " << current << endl << endl; |
|
cout << "Unknown argument : " << current << endl; |
|
126 |
} |
} |
127 |
} |
} |
128 |
|
|