<rdar://problem/13270271>

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 

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@184163 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/lldb/Interpreter/CommandObject.h b/include/lldb/Interpreter/CommandObject.h
index 6ddebdb..2bfab0a 100644
--- a/include/lldb/Interpreter/CommandObject.h
+++ b/include/lldb/Interpreter/CommandObject.h
@@ -108,9 +108,6 @@
     GetSyntax ();
 
     const char *
-    Translate ();
-
-    const char *
     GetCommandName ();
 
     void
@@ -129,7 +126,7 @@
     // the Command object from the Command dictionary (aliases have their own
     // deletion scheme, so they do not need to care about this)
     virtual bool
-    IsRemovable() const { return false; }
+    IsRemovable () const { return false; }
     
     bool
     IsAlias () { return m_is_alias; }
diff --git a/source/Interpreter/CommandObject.cpp b/source/Interpreter/CommandObject.cpp
index 67d57f1..291dc40 100644
--- a/source/Interpreter/CommandObject.cpp
+++ b/source/Interpreter/CommandObject.cpp
@@ -94,7 +94,7 @@
         if (m_arguments.size() > 0)
         {
             syntax_str.Printf (" ");
-            if (WantsRawCommandString())
+            if (WantsRawCommandString() && GetOptions() && GetOptions()->NumCommandOptions())
                 syntax_str.Printf("-- ");
             GetFormattedCommandArguments (syntax_str);
         }
@@ -105,13 +105,6 @@
 }
 
 const char *
-CommandObject::Translate ()
-{
-    //return m_cmd_func_name.c_str();
-    return "This function is currently not implemented.";
-}
-
-const char *
 CommandObject::GetCommandName ()
 {
     return m_cmd_name.c_str();