added Application::commandPath()
This commit is contained in:
Родитель
7e8797fb5a
Коммит
e60bcd413d
|
@ -251,6 +251,9 @@ public:
|
||||||
std::string commandName() const;
|
std::string commandName() const;
|
||||||
/// Returns the command name used to invoke the application.
|
/// Returns the command name used to invoke the application.
|
||||||
|
|
||||||
|
std::string commandPath() const;
|
||||||
|
/// Returns the full command path used to invoke the application.
|
||||||
|
|
||||||
LayeredConfiguration& config() const;
|
LayeredConfiguration& config() const;
|
||||||
/// Returns the application's configuration.
|
/// Returns the application's configuration.
|
||||||
|
|
||||||
|
|
|
@ -160,9 +160,8 @@ protected:
|
||||||
if (!_helpRequested)
|
if (!_helpRequested)
|
||||||
{
|
{
|
||||||
logger().information("Command line:");
|
logger().information("Command line:");
|
||||||
const ArgVec argVec = argv();
|
|
||||||
std::ostringstream ostr;
|
std::ostringstream ostr;
|
||||||
for (ArgVec::const_iterator it = argVec.begin(); it != argVec.end(); ++it)
|
for (ArgVec::const_iterator it = argv().begin(); it != argv().end(); ++it)
|
||||||
{
|
{
|
||||||
ostr << *it << ' ';
|
ostr << *it << ' ';
|
||||||
}
|
}
|
||||||
|
|
|
@ -303,6 +303,12 @@ std::string Application::commandName() const
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
std::string Application::commandPath() const
|
||||||
|
{
|
||||||
|
return _pConfig->getString("application.path");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void Application::stopOptionsProcessing()
|
void Application::stopOptionsProcessing()
|
||||||
{
|
{
|
||||||
_stopOptionsProcessing = true;
|
_stopOptionsProcessing = true;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче