Add  alias information, including aliased command options & 
arguments, to help text for alias commands.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@117617 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectHelp.cpp b/source/Commands/CommandObjectHelp.cpp
index c7aa2b4..07d80eb 100644
--- a/source/Commands/CommandObjectHelp.cpp
+++ b/source/Commands/CommandObjectHelp.cpp
@@ -69,6 +69,8 @@
         // Get command object for the first command argument. Only search built-in command dictionary.
         StringList matches;
         cmd_obj = m_interpreter.GetCommandObject (command.GetArgumentAtIndex (0), &matches);
+        bool is_alias_command = m_interpreter.AliasExists (command.GetArgumentAtIndex (0));
+        std::string alias_name = command.GetArgumentAtIndex(0);
         
         if (cmd_obj != NULL)
         {
@@ -155,6 +157,13 @@
                     result.SetStatus (eReturnStatusSuccessFinishNoResult);
                 }
             }
+            
+            if (is_alias_command)
+            {
+                StreamString sstr;
+                m_interpreter.GetAliasHelp (alias_name.c_str(), cmd_obj->GetCommandName(), sstr);
+                result.GetOutputStream().Printf ("\n'%s' is an abbreviation for %s\n", alias_name.c_str(), sstr.GetData());
+            }
         }
         else if (matches.GetSize() > 0)
         {