From e304d45f651bedd211d2e32afacbde44bd583fb5 Mon Sep 17 00:00:00 2001 From: Roland Jax Date: Fri, 31 Oct 2014 19:10:36 +0100 Subject: [PATCH] BUG: Appl::printArgs splitting of 'm_agrv' corrected to print executable name without path. --- src/libcore/appl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;