diff options
Diffstat (limited to 'source/core/slang-command-line.cpp')
| -rw-r--r-- | source/core/slang-command-line.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source/core/slang-command-line.cpp b/source/core/slang-command-line.cpp index 973bb46d0..f8b5ff10f 100644 --- a/source/core/slang-command-line.cpp +++ b/source/core/slang-command-line.cpp @@ -71,7 +71,16 @@ void ExecutableLocation::append(StringBuilder& out) const void CommandLine::addPrefixPathArg(const char* prefix, const String& path, const char* pathPostfix) { StringBuilder builder; - builder << prefix << path; + builder << prefix; + + // TODO(JS): The assumption here is that quoting will be added as necessary and + // -prefixSomething Else + // is okay as + // "-prefixSomething Else" rather than + // -prefix"Something Else" + + builder << path; + if (pathPostfix) { // Work out the path with the postfix |
