aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandObject.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-01-04 19:11:25 +0000
committerSean Callanan <scallanan@apple.com>2012-01-04 19:11:25 +0000
commita4c6ad191417112dae453d3b9313aff6c5bb18f7 (patch)
tree592a13dd1d38da69ad6b75bd294df148489c7cea /lldb/source/Interpreter/CommandObject.cpp
parent06d3d01295cfa1e22bf46caf35e6fd4e4d286607 (diff)
downloadllvm-a4c6ad191417112dae453d3b9313aff6c5bb18f7.zip
llvm-a4c6ad191417112dae453d3b9313aff6c5bb18f7.tar.gz
llvm-a4c6ad191417112dae453d3b9313aff6c5bb18f7.tar.bz2
Fixed the help text for raw commands like "expr"
to include -- in sample command lines. Now LLDB prints expression [-f <format>] -- <expr> instead of expression [-f <format>] <expr> and also adds a new example line: expression <expr> to show that in the absense of arguments the -- can be ommitted. llvm-svn: 147540
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
-rw-r--r--lldb/source/Interpreter/CommandObject.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp
index 2743012..696b92b 100644
--- a/lldb/source/Interpreter/CommandObject.cpp
+++ b/lldb/source/Interpreter/CommandObject.cpp
@@ -89,6 +89,8 @@ CommandObject::GetSyntax ()
if (m_arguments.size() > 0)
{
syntax_str.Printf (" ");
+ if (WantsRawCommandString())
+ syntax_str.Printf("-- ");
GetFormattedCommandArguments (syntax_str);
}
m_cmd_syntax = syntax_str.GetData ();