diff --git a/src/libcore/appl.cpp b/src/libcore/appl.cpp index 795898f0..263f9554 100644 --- a/src/libcore/appl.cpp +++ b/src/libcore/appl.cpp @@ -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;