From 0627e940acacd002b41a6b498dc9ee41a787a727 Mon Sep 17 00:00:00 2001 From: Jerry Marino Date: Mon, 22 Feb 2021 12:05:22 -0800 Subject: [PATCH] Add the ability to not remap unit files I'd like to have the ability to copy unit files without remapping them. For this PR https://github.com/lyft/index-import/pull/53 we still need to read in the unit files but not mutate the material. This PR just removes the requirement on "remap" arg. --- index-import.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index-import.cpp b/index-import.cpp index 053a55c..6013d64 100644 --- a/index-import.cpp +++ b/index-import.cpp @@ -24,7 +24,7 @@ using namespace clang; using namespace clang::index; using namespace clang::index::writer; -static cl::list PathRemaps("remap", cl::OneOrMore, +static cl::list PathRemaps("remap", cl::desc("Path remapping substitution"), cl::value_desc("regex=replacement")); static cl::alias PathRemapsAlias("r", cl::aliasopt(PathRemaps));