- added new commandline parameters:

--help
--validate-factions=x

for full details of all commandline params run --help
This commit is contained in:
Mark Vejvoda
2010-08-21 01:54:04 +00:00
parent d08c8300f0
commit 25a7097066
2 changed files with 89 additions and 12 deletions

View File

@@ -133,6 +133,27 @@ void showCursor(bool b);
bool isKeyDown(int virtualKey);
string getCommandLine();
#define SPACES " "
inline string trim_right (const string & s, const string & t = SPACES) {
string d (s);
string::size_type i (d.find_last_not_of (t));
if (i == string::npos)
return "";
else
return d.erase (d.find_last_not_of (t) + 1) ;
} // end of trim_right
inline string trim_left (const string & s, const string & t = SPACES) {
string d (s);
return d.erase (0, s.find_first_not_of (t)) ;
} // end of trim_left
inline string trim (const string & s, const string & t = SPACES) {
string d (s);
return trim_left (trim_right (d, t), t) ;
} // end of trim
}}//end namespace
#endif