diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index 80cc742bd..cc094abdf 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -386,6 +386,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[]) if (!path.empty()) { path = Path::fromNativeSeparators(path); + path = Path::simplifyPath(path.c_str()); path = Path::removeQuotationMarks(path); // If not "known" filename extension then assume it is path