CLI: Simplify ignore paths.
Fixes #2656 (-i Give path to ignore does not ignore if start of the path is different than checked path) Simplify paths given as -i options. This makes it easier to match the paths as simplifying removes redundant parts.
This commit is contained in:
parent
4d4b28b075
commit
38f5267ba8
|
@ -386,6 +386,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
|
||||||
if (!path.empty())
|
if (!path.empty())
|
||||||
{
|
{
|
||||||
path = Path::fromNativeSeparators(path);
|
path = Path::fromNativeSeparators(path);
|
||||||
|
path = Path::simplifyPath(path.c_str());
|
||||||
path = Path::removeQuotationMarks(path);
|
path = Path::removeQuotationMarks(path);
|
||||||
|
|
||||||
// If not "known" filename extension then assume it is path
|
// If not "known" filename extension then assume it is path
|
||||||
|
|
Loading…
Reference in New Issue