From b7ad58a0dfe2a3db177472dacadc474a608e9bc0 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Thu, 4 Apr 2013 20:35:24 +0000 Subject: 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 --- lldb/source/Interpreter/CommandObject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Interpreter/CommandObject.cpp') 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 (""); -- cgit v1.2.3