Added -- as command line argument terminator.

This commit is contained in:
Branimir Karadžić
2017-09-03 20:04:48 -07:00
parent 525801cdf8
commit 057f6b180c
2 changed files with 10 additions and 3 deletions

View File

@@ -262,7 +262,7 @@ namespace bx
const char* CommandLine::find(int32_t _skip, const char _short, const char* _long, int32_t _numParams) const
{
for (int32_t ii = 0; ii < m_argc; ++ii)
for (int32_t ii = 0; ii < m_argc && 0 != strCmp(m_argv[ii], "--"); ++ii)
{
const char* arg = m_argv[ii];
if ('-' == *arg)