diff options
Diffstat (limited to 'lldb/tools/lldb-mi/MICmdArgValOptionLong.cpp')
| -rw-r--r-- | lldb/tools/lldb-mi/MICmdArgValOptionLong.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/tools/lldb-mi/MICmdArgValOptionLong.cpp b/lldb/tools/lldb-mi/MICmdArgValOptionLong.cpp index 3e9e69a2387..e39a50e0fe3 100644 --- a/lldb/tools/lldb-mi/MICmdArgValOptionLong.cpp +++ b/lldb/tools/lldb-mi/MICmdArgValOptionLong.cpp @@ -108,7 +108,7 @@ bool CMICmdArgValOptionLong::Validate(CMICmdArgContext &vwArgContext) { if (vwArgContext.IsEmpty()) - return MIstatus::success; + return m_bMandatory ? MIstatus::failure : MIstatus::success; if (vwArgContext.GetNumberArgsPresent() == 1) { |

