BUG: Appl::printArgs splitting of 'm_agrv' corrected to print executable name without path.

This commit is contained in:
Roland Jax
2014-10-31 19:10:36 +01:00
parent 741fc98594
commit e304d45f65
+1 -1
View File
@@ -62,7 +62,7 @@ void Appl::addItem(const char* name, Param param, const char* shortname,
void Appl::printArgs()
{
std::cerr << std::endl << "Usage:" << std::endl << " "
<< m_argv[0].substr(2) << " [OPTIONS...]" ;
<< m_argv[0].substr(m_argv[0].find_last_of("/\\") + 1) << " [OPTIONS...]" ;
if (m_argTxt.size() != 0)
std::cerr << " " << m_argTxt;