BUG: Appl::printArgs splitting of 'm_agrv' corrected to print executable name without path.
This commit is contained in:
@@ -62,7 +62,7 @@ void Appl::addItem(const char* name, Param param, const char* shortname,
|
|||||||
void Appl::printArgs()
|
void Appl::printArgs()
|
||||||
{
|
{
|
||||||
std::cerr << std::endl << "Usage:" << std::endl << " "
|
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)
|
if (m_argTxt.size() != 0)
|
||||||
std::cerr << " " << m_argTxt;
|
std::cerr << " " << m_argTxt;
|
||||||
|
|||||||
Reference in New Issue
Block a user