diff options
Diffstat (limited to 'lib/compilers/argument-parsers.js')
-rw-r--r-- | lib/compilers/argument-parsers.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/compilers/argument-parsers.js b/lib/compilers/argument-parsers.js index de38d5a6b..801961ac6 100644 --- a/lib/compilers/argument-parsers.js +++ b/lib/compilers/argument-parsers.js @@ -31,12 +31,14 @@ class BaseParser { return compiler.exec(compiler.compiler.exe, [helpArg]).then(result => { const options = {}; if (result.code === 0) { - const optionFinder = /^\s*(--?[-a-zA-Z]+)/; + const optionFinder = /^\s*(--?[-a-zA-Z]+)\s*(.*)/; utils.eachLine(result.stdout + result.stderr, line => { const match = line.match(optionFinder); if (!match) return; - options[match[1]] = true; + options[match[1]] = { + "description": match[2] + }; }); } compiler.compiler.possibleArguments = options; |