Include --profile-dir in help text
This commit is contained in:
parent
01a78a4d3a
commit
87c5f874e4
|
@ -166,8 +166,8 @@ private:
|
|||
" -l --log <file> write log messages to file.\n" \
|
||||
" --no-tray disable the system tray icon.\n" \
|
||||
" --enable-drag-drop enable file drag & drop.\n" \
|
||||
" --enable-crypto enable the crypto (ssl) plugin.\n"
|
||||
|
||||
" --enable-crypto enable the crypto (ssl) plugin.\n" \
|
||||
" --profile-dir <path> use named profile directory instead.\n"
|
||||
#define HELP_COMMON_INFO_2 \
|
||||
" -h, --help display this help and exit.\n" \
|
||||
" --version display version information and exit.\n"
|
||||
|
|
|
@ -128,6 +128,12 @@ ServerApp::help()
|
|||
# define WINAPI_INFO ""
|
||||
#endif
|
||||
|
||||
// refer to custom profile directory even if not saved yet
|
||||
String profilePath = argsBase().m_profileDirectory;
|
||||
if (profilePath.empty()) {
|
||||
profilePath = DataDirectories::profile();
|
||||
}
|
||||
|
||||
std::ostringstream buffer;
|
||||
buffer << "Start the barrier server component." << std::endl
|
||||
<< std::endl
|
||||
|
@ -150,7 +156,7 @@ ServerApp::help()
|
|||
<< std::endl
|
||||
<< "If no configuration file pathname is provided then the first of the" << std::endl
|
||||
<< "following to load successfully sets the configuration:" << std::endl
|
||||
<< " " << PathUtilities::concat(DataDirectories::profile(), USR_CONFIG_NAME) << std::endl
|
||||
<< " " << PathUtilities::concat(profilePath, USR_CONFIG_NAME) << std::endl
|
||||
<< " " << PathUtilities::concat(DataDirectories::systemconfig(), SYS_CONFIG_NAME) << std::endl;
|
||||
|
||||
LOG((CLOG_PRINT "%s", buffer.str().c_str()));
|
||||
|
|
Loading…
Reference in New Issue