This revision was automatically updated to reflect the committed changes. Closed by commit rL338976: Remove duplicated code in CommandObjectQuit (authored by teemperor, committed by ). Herald added a subscriber: llvm-commits.
Changed prior to commit: https://reviews.llvm.org/D50317?vs=159237&id=159238#toc Repository: rL LLVM https://reviews.llvm.org/D50317 Files: lldb/trunk/source/Commands/CommandObjectQuit.cpp Index: lldb/trunk/source/Commands/CommandObjectQuit.cpp =================================================================== --- lldb/trunk/source/Commands/CommandObjectQuit.cpp +++ lldb/trunk/source/Commands/CommandObjectQuit.cpp @@ -86,13 +86,6 @@ return false; } - if (command.GetArgumentCount() > 1) { - result.AppendError("Too many arguments for 'quit'. Only an optional exit " - "code is allowed"); - result.SetStatus(eReturnStatusFailed); - return false; - } - // We parse the exit code argument if there is one. if (command.GetArgumentCount() == 1) { llvm::StringRef arg = command.GetArgumentAtIndex(0);
Index: lldb/trunk/source/Commands/CommandObjectQuit.cpp =================================================================== --- lldb/trunk/source/Commands/CommandObjectQuit.cpp +++ lldb/trunk/source/Commands/CommandObjectQuit.cpp @@ -86,13 +86,6 @@ return false; } - if (command.GetArgumentCount() > 1) { - result.AppendError("Too many arguments for 'quit'. Only an optional exit " - "code is allowed"); - result.SetStatus(eReturnStatusFailed); - return false; - } - // We parse the exit code argument if there is one. if (command.GetArgumentCount() == 1) { llvm::StringRef arg = command.GetArgumentAtIndex(0);
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits