aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/OptionGroupOutputFile.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-10-24 01:12:14 +0000
committerSean Callanan <scallanan@apple.com>2012-10-24 01:12:14 +0000
commit3154255fd6051ad200646203f7da742bc6b542fc (patch)
tree90c80d0011820f4fc4804edd165be60ee720e915 /lldb/source/Interpreter/OptionGroupOutputFile.cpp
parentec57ab374b1ff5a77adfd5bc7992040548dfe922 (diff)
downloadllvm-3154255fd6051ad200646203f7da742bc6b542fc.zip
llvm-3154255fd6051ad200646203f7da742bc6b542fc.tar.gz
llvm-3154255fd6051ad200646203f7da742bc6b542fc.tar.bz2
This is a fix for the command option parser.
There was a generic catch-all type for path arguments called "eArgTypePath," and a specialized version called "eArgTypeFilename." It turns out all the cases where we used eArgTypePath we could have used Filename or we explicitly meant a directory. I changed Path to DirectoryName, made it use the directory completer, and rationalized the uses of Path. <rdar://problem/12559915> llvm-svn: 166533
Diffstat (limited to 'lldb/source/Interpreter/OptionGroupOutputFile.cpp')
-rw-r--r--lldb/source/Interpreter/OptionGroupOutputFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/OptionGroupOutputFile.cpp b/lldb/source/Interpreter/OptionGroupOutputFile.cpp
index 93c0ffb..1ec31da 100644
--- a/lldb/source/Interpreter/OptionGroupOutputFile.cpp
+++ b/lldb/source/Interpreter/OptionGroupOutputFile.cpp
@@ -31,7 +31,7 @@ OptionGroupOutputFile::~OptionGroupOutputFile ()
static OptionDefinition
g_option_table[] =
{
- { LLDB_OPT_SET_1 , false, "outfile", 'o', required_argument, NULL, 0, eArgTypePath , "Specify a path for capturing command output."},
+ { LLDB_OPT_SET_1 , false, "outfile", 'o', required_argument, NULL, 0, eArgTypeFilename , "Specify a path for capturing command output."},
{ LLDB_OPT_SET_1 , false, "append-outfile" , 'A', no_argument, NULL, 0, eArgTypeNone , "Append to the the file specified with '--outfile <path>'."},
};