From f08ee5e8effaeb4b2fa240dcccacfd767e047768 Mon Sep 17 00:00:00 2001 From: Partouf Date: Fri, 26 Oct 2018 12:53:33 +0200 Subject: [PATCH] include description --- lib/compilers/argument-parsers.js | 6 ++++-- 1 file 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;