diff options
author | RabsRincon <ruben@rinconblanco.es> | 2019-12-27 17:48:45 +0100 |
---|---|---|
committer | RabsRincon <ruben@rinconblanco.es> | 2019-12-27 17:48:45 +0100 |
commit | f8b83af8cb86fdd2908ad18f6fccbd901e530c33 (patch) | |
tree | db33f6568be9ea298e9dfb80f79189c95cc92595 /lib/compilers/argument-parsers.js | |
parent | 21bf3b235dd8992e20ff3f15d8baafcc9db73eb9 (diff) | |
download | compiler-explorer-f8b83af8cb86fdd2908ad18f6fccbd901e530c33.tar.gz compiler-explorer-f8b83af8cb86fdd2908ad18f6fccbd901e530c33.zip |
Fix rust argument parser with multi flag help comm
Diffstat (limited to 'lib/compilers/argument-parsers.js')
-rw-r--r-- | lib/compilers/argument-parsers.js | 4 |
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); |