Added getInstalledDir to ToolApp. #4696
This commit is contained in:
parent
4bf1eeb065
commit
98bb9b3fb3
|
@ -180,6 +180,10 @@ ArgParser::parseToolArgs(ToolArgs& args, int argc, const char* const* argv)
|
||||||
args.m_getPluginList = true;
|
args.m_getPluginList = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
else if (isArg(i, argc, argv, NULL, "--get-installed-dir", 0)) {
|
||||||
|
args.m_getInstalledDir = true;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
else if (isArg(i, argc, argv, NULL, "--get-plugin-dir", 0)) {
|
else if (isArg(i, argc, argv, NULL, "--get-plugin-dir", 0)) {
|
||||||
args.m_getPluginDir = true;
|
args.m_getPluginDir = true;
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -74,6 +74,9 @@ ToolApp::run(int argc, char** argv)
|
||||||
else if (m_args.m_getPluginList) {
|
else if (m_args.m_getPluginList) {
|
||||||
getPluginList();
|
getPluginList();
|
||||||
}
|
}
|
||||||
|
else if (m_args.m_getInstalledDir) {
|
||||||
|
std::cout << ARCH->getInstalledDirectory() << std::endl;
|
||||||
|
}
|
||||||
else if (m_args.m_getPluginDir) {
|
else if (m_args.m_getPluginDir) {
|
||||||
std::cout << ARCH->getPluginDirectory() << std::endl;
|
std::cout << ARCH->getPluginDirectory() << std::endl;
|
||||||
}
|
}
|
||||||
|
@ -143,4 +146,4 @@ ToolApp::getPluginList()
|
||||||
ss << "&password=" << password;
|
ss << "&password=" << password;
|
||||||
|
|
||||||
std::cout << ARCH->internet().get(ss.str()) << std::endl;
|
std::cout << ARCH->internet().get(ss.str()) << std::endl;
|
||||||
}
|
}
|
|
@ -22,6 +22,7 @@ ToolArgs::ToolArgs() :
|
||||||
m_loginAuthenticate(false),
|
m_loginAuthenticate(false),
|
||||||
m_getPluginList(false),
|
m_getPluginList(false),
|
||||||
m_getPluginDir(false),
|
m_getPluginDir(false),
|
||||||
|
m_getInstalledDir(false),
|
||||||
m_getProfileDir(false)
|
m_getProfileDir(false)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,7 @@ public:
|
||||||
bool m_loginAuthenticate;
|
bool m_loginAuthenticate;
|
||||||
bool m_getPluginList;
|
bool m_getPluginList;
|
||||||
bool m_getPluginDir;
|
bool m_getPluginDir;
|
||||||
|
bool m_getInstalledDir;
|
||||||
bool m_getProfileDir;
|
bool m_getProfileDir;
|
||||||
bool m_getArch;
|
bool m_getArch;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue