From 47f4a5d501a3f5b567ec040e7b59060669b17f39 Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 2 Feb 2016 19:30:19 +0100 Subject: [PATCH] Changed: Use CCmdArgs for client_patcher --- code/ryzom/tools/client/client_patcher/main.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/code/ryzom/tools/client/client_patcher/main.cpp b/code/ryzom/tools/client/client_patcher/main.cpp index 54b258e63..4402da8a9 100644 --- a/code/ryzom/tools/client/client_patcher/main.cpp +++ b/code/ryzom/tools/client/client_patcher/main.cpp @@ -1,6 +1,10 @@ #include "stdpch.h" #include "login_patch.h" #include "client_cfg.h" +#include "user_agent.h" + +#include "nel/misc/cmd_args.h" + #include #ifdef NL_OS_WINDOWS @@ -28,6 +32,8 @@ string VersionName; string LoginLogin, LoginPassword; uint32 LoginShardId = 0xFFFFFFFF; +CCmdArgs Args; + bool useUtf8 = false; bool useEsc = false; @@ -147,6 +153,12 @@ int main(int argc, char *argv[]) // init the Nel context CApplicationContext appContext; + Args.setVersion(getDisplayVersion()); + Args.setDescription("Ryzom client"); + Args.addArg("c", "config", "id", "Use this configuration to determine what directory to use by default"); + + if (!Args.parse(argc, argv)) return 1; + // create logs in temporary directory createDebug(CPath::getTemporaryDirectory().c_str(), true, true);