From d3ad91923d60a60950a06ac6c8a407272dabfcea Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 20 Feb 2016 19:02:35 +0100 Subject: [PATCH] Changed: Use --profile instead of --config for client profile expression --HG-- branch : develop --- code/ryzom/client/src/client.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/ryzom/client/src/client.cpp b/code/ryzom/client/src/client.cpp index 1cb3fb3c9..63392dd15 100644 --- a/code/ryzom/client/src/client.cpp +++ b/code/ryzom/client/src/client.cpp @@ -171,7 +171,7 @@ int main(int argc, char **argv) Args.setVersion(getDisplayVersion()); Args.setDescription("Ryzom client"); - Args.addArg("c", "config", "id", "Use this configuration to determine what directory to use by default"); + Args.addArg("p", "profile", "id", "Use this profile to determine what directory to use by default"); Args.addAdditionalArg("login", "Login to use", true, false); Args.addAdditionalArg("password", "Password to use", true, false); Args.addAdditionalArg("shard_id", "Shard ID to use", true, false); @@ -206,13 +206,13 @@ int main(int argc, char **argv) LoginShardId = std::numeric_limits::max(); // if client_default.cfg is not in current directory, use application default directory - if (Args.haveArg("c") || !CFile::isExists("client_default.cfg")) + if (Args.haveArg("p") || !CFile::isExists("client_default.cfg")) { std::string currentPath = CPath::getApplicationDirectory("Ryzom"); - // append config ID to directory - if (Args.haveArg("c")) - currentPath = NLMISC::CPath::standardizePath(currentPath) + Args.getArg("c").front(); + // append profile ID to directory + if (Args.haveArg("p")) + currentPath = NLMISC::CPath::standardizePath(currentPath) + Args.getArg("p").front(); if (!CFile::isExists(currentPath)) CFile::createDirectory(currentPath);