[LLVMbugs] [Bug 18649] New: CommandLine: cl::alias doesn't handle separated aliases
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jan 28 15:37:58 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18649
Bug ID: 18649
Summary: CommandLine: cl::alias doesn't handle separated
aliases
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Support Libraries
Assignee: unassignedbugs at nondot.org
Reporter: jordan_rose at apple.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
When using cl::alias to alias an option that takes an argument
(cl::opt<std::string>), it handles parsing the form "-alias=value" but not
"-alias value"; the latter is taken as a value-less flag followed by a
positional argument.
Workaround:
static llvm::cl::opt<std::string, true>
Alias("alias", llvm::cl::desc("(deprecated; use -actual instead)"),
llvm::cl::Hidden, llvm::cl::location(Actual));
I don't have a self-contained test case right now, but I'll try to attach one
soon-ish.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140128/b49182cb/attachment.html>
More information about the llvm-bugs
mailing list