From ca5acdbef8132372c2965f044cd22260cc4987b2 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Tue, 18 Jun 2013 01:17:46 +0000 Subject: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only add the — (double dash) separator to a command syntax if it has any options to be separated from arguments Also remove the unused Translate() method from CommandObject llvm-svn: 184163 --- lldb/source/Interpreter/CommandObject.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'lldb/source/Interpreter/CommandObject.cpp') diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp index 67d57f1b1e1..291dc401357 100644 --- a/lldb/source/Interpreter/CommandObject.cpp +++ b/lldb/source/Interpreter/CommandObject.cpp @@ -94,7 +94,7 @@ CommandObject::GetSyntax () if (m_arguments.size() > 0) { syntax_str.Printf (" "); - if (WantsRawCommandString()) + if (WantsRawCommandString() && GetOptions() && GetOptions()->NumCommandOptions()) syntax_str.Printf("-- "); GetFormattedCommandArguments (syntax_str); } @@ -104,13 +104,6 @@ CommandObject::GetSyntax () return m_cmd_syntax.c_str(); } -const char * -CommandObject::Translate () -{ - //return m_cmd_func_name.c_str(); - return "This function is currently not implemented."; -} - const char * CommandObject::GetCommandName () { -- cgit v1.2.3