fixed logging in Usage()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@8014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -862,12 +862,13 @@ void wxCmdLineParser::Usage()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxString fullmsg;
|
||||||
if ( !!m_data->m_logo )
|
if ( !!m_data->m_logo )
|
||||||
{
|
{
|
||||||
wxLogMessage(m_data->m_logo);
|
fullmsg << m_data->m_logo << _T('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
wxLogMessage(brief);
|
fullmsg << brief << _T('\n');
|
||||||
|
|
||||||
// now construct the detailed help message
|
// now construct the detailed help message
|
||||||
size_t len, lenMax = 0;
|
size_t len, lenMax = 0;
|
||||||
@@ -889,7 +890,8 @@ void wxCmdLineParser::Usage()
|
|||||||
<< _T('\n');
|
<< _T('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
wxLogMessage(detailed);
|
fullmsg << detailed;
|
||||||
|
wxLogMessage(fullmsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user