]> granicus.if.org Git - llvm/commit
[CommandLine] Change help output to prefix long options with `--` instead of `-`...
authorDon Hinton <hintonda@gmail.com>
Fri, 3 May 2019 17:47:29 +0000 (17:47 +0000)
committerDon Hinton <hintonda@gmail.com>
Fri, 3 May 2019 17:47:29 +0000 (17:47 +0000)
commit0eff58c79b6baff69bf7a993369f9b55ebde89b7
treeda6664b1dbd3290fe92933accf3040b573021560
parentff2899148abfd9867cd6abb09ae7f502f607fa3f
[CommandLine] Change help output to prefix long options with `--` instead of `-`. NFC . Part 3 of 5

Summary:
By default, `parseCommandLineOptions()` will accept either a
`-` or `--` prefix for long options -- options with names longer than
a single character.

While this change does not affect behavior, it will be helpful with a
subsequent change that requires long options use the `--` prefix.

Reviewers: rnk, thopre

Reviewed By: thopre

Subscribers: thopre, cfe-commits, hiraditya, llvm-commits

Tags: #llvm, #clang

Differential Revision: https://reviews.llvm.org/D61269

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359909 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/CommandLine.cpp
test/FileCheck/dump-input-enable.txt
test/Support/check-default-options.txt
unittests/Support/CommandLineTest.cpp