[PATCH] D61294: [CommandLine] Add long option flag for cl::ParseCommandLineOptions
Don Hinton via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 29 20:43:45 PDT 2019
hintonda created this revision.
hintonda added a reviewer: rnk.
Herald added subscribers: rupprecht, hiraditya.
Herald added a project: LLVM.
If passed, the long option flag makes the CommandLine parser
mimic the behavior or GNU getopt_long. Short options are a single
character prefixed by a single dash, and long options are multiple
characters prefixed by a double dash.
This patch requires D61269 <https://reviews.llvm.org/D61269> and D61270 <https://reviews.llvm.org/D61270>, and is motivated by the
discussion in the following thread:
http://lists.llvm.org/pipermail/llvm-dev/2019-April/131786.html
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D61294
Files:
llvm/include/llvm/Support/CommandLine.h
llvm/lib/Support/CommandLine.cpp
llvm/test/tools/llvm-readobj/merged.test
llvm/unittests/Support/CommandLineTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61294.197257.patch
Type: text/x-patch
Size: 13490 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190430/a34f75d7/attachment.bin>
More information about the llvm-commits
mailing list