Clean up a few places where SetOptionValue was using the global optarg, rather than the option_arg value that was passed in.

git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@128064 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectTarget.cpp b/source/Commands/CommandObjectTarget.cpp
index d18d34e..f6c7a1c 100644
--- a/source/Commands/CommandObjectTarget.cpp
+++ b/source/Commands/CommandObjectTarget.cpp
@@ -557,9 +557,9 @@
                 break;
                 case 't' :
                 {
-                    m_thread_id = Args::StringToUInt64(optarg, LLDB_INVALID_THREAD_ID, 0);
+                    m_thread_id = Args::StringToUInt64(option_arg, LLDB_INVALID_THREAD_ID, 0);
                     if (m_thread_id == LLDB_INVALID_THREAD_ID)
-                       error.SetErrorStringWithFormat ("Invalid thread id string '%s'.\n", optarg);
+                       error.SetErrorStringWithFormat ("Invalid thread id string '%s'.\n", option_arg);
                     m_thread_specified = true;
                 }
                 break;
@@ -573,9 +573,9 @@
                     break;
                 case 'x':
                 {
-                    m_thread_index = Args::StringToUInt32(optarg, UINT32_MAX, 0);
+                    m_thread_index = Args::StringToUInt32(option_arg, UINT32_MAX, 0);
                     if (m_thread_id == UINT32_MAX)
-                       error.SetErrorStringWithFormat ("Invalid thread index string '%s'.\n", optarg);
+                       error.SetErrorStringWithFormat ("Invalid thread index string '%s'.\n", option_arg);
                     m_thread_specified = true;
                 }
                 break;