aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/argument-parsers.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/argument-parsers.js')
-rw-r--r--lib/compilers/argument-parsers.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compilers/argument-parsers.js b/lib/compilers/argument-parsers.js
index d04e243e8..76e6e2ea1 100644
--- a/lib/compilers/argument-parsers.js
+++ b/lib/compilers/argument-parsers.js
@@ -267,14 +267,14 @@ class RustParser extends BaseParser {
}
static getOptions(compiler, helpArg) {
- return compiler.execCompilerCached(compiler.compiler.exe, [helpArg]).then(result => {
+ return compiler.execCompilerCached(compiler.compiler.exe, helpArg.split(' ')).then(result => {
let options = {};
if (result.code === 0) {
if (helpArg === "-C help") {
const optionFinder = /^\s*(-C\s*[a-z0-9=-]*)\s--\s(.*)/i;
options = BaseParser.parseLines(result.stdout + result.stderr, optionFinder);
- } else if (helpArg === "--help") {
+ } else {
const optionFinder = /^\s*(--?[a-z0-9=+,[\]<>|-]*)\s*(.*)/i;
options = BaseParser.parseLines(result.stdout + result.stderr, optionFinder);