[10091] Use ACE for command line options parse.

Note: "--service run" renamed to "-s run"
in consistence with other serrvice options.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Astellar 2010-06-21 06:37:25 +04:00 committed by VladimirMangos
parent 9d8dd578ca
commit 78400f8406
4 changed files with 110 additions and 109 deletions

View file

@ -57,7 +57,7 @@ bool WinServiceInstall()
if (GetModuleFileName( 0, path, sizeof(path)/sizeof(path[0]) ) > 0)
{
SC_HANDLE service;
std::strcat(path, " --service");
std::strcat(path, " -s run");
service = CreateService(serviceControlManager,
serviceName, // name of service
serviceLongName, // service name to display