summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandObject.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-04-04 20:35:24 +0000
committerGreg Clayton <gclayton@apple.com>2013-04-04 20:35:24 +0000
commitb7ad58a0dfe2a3db177472dacadc474a608e9bc0 (patch)
tree70e9c446c7e28b8b945c37d2665b027f9e8e67ea /lldb/source/Interpreter/CommandObject.cpp
parent563d9dc1b2ad4b7622575f7fbfdb99c84400d442 (diff)
downloadbcm5719-llvm-b7ad58a0dfe2a3db177472dacadc474a608e9bc0.tar.gz
bcm5719-llvm-b7ad58a0dfe2a3db177472dacadc474a608e9bc0.zip
<rdar://problem/13457391>
LLDB now can use a single dash for all long options for all commands form the command line and from the command interpreter. This involved just switching all calls from getopt_long() to getopt_long_only(). llvm-svn: 178789
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
-rw-r--r--lldb/source/Interpreter/CommandObject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp
index 96e0ef92316..d2b2ce54875 100644
--- a/lldb/source/Interpreter/CommandObject.cpp
+++ b/lldb/source/Interpreter/CommandObject.cpp
@@ -169,7 +169,7 @@ CommandObject::ParseOptions
Error error;
options->NotifyOptionParsingStarting();
- // ParseOptions calls getopt_long, which always skips the zero'th item in the array and starts at position 1,
+ // ParseOptions calls getopt_long_only, which always skips the zero'th item in the array and starts at position 1,
// so we need to push a dummy value into position zero.
args.Unshift("dummy_string");
error = args.ParseOptions (*options);
@@ -416,7 +416,7 @@ CommandObject::HandleCompletion
// I stick an element on the end of the input, because if the last element is
- // option that requires an argument, getopt_long will freak out.
+ // option that requires an argument, getopt_long_only will freak out.
input.AppendArgument ("<FAKE-VALUE>");
OpenPOWER on IntegriCloud