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:
Kimmo Varis 2011-03-29 20:50:03 +03:00
parent 4d4b28b075
commit 38f5267ba8
1 changed files with 1 additions and 0 deletions

View File

@ -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