aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/argument-parsers.js
diff options
context:
space:
mode:
authorPartouf <partouf@gmail.com>2018-10-26 12:53:33 +0200
committerPartouf <partouf@gmail.com>2018-10-26 12:53:33 +0200
commitf08ee5e8effaeb4b2fa240dcccacfd767e047768 (patch)
treebb98e29e0487e5c364f2c8b1d8f4582aec5408e1 /lib/compilers/argument-parsers.js
parenta2446e25b86f1b0b7bbb68a75e4d5967933b7b33 (diff)
downloadcompiler-explorer-f08ee5e8effaeb4b2fa240dcccacfd767e047768.tar.gz
compiler-explorer-f08ee5e8effaeb4b2fa240dcccacfd767e047768.zip
include description
Diffstat (limited to 'lib/compilers/argument-parsers.js')
-rw-r--r--lib/compilers/argument-parsers.js6
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;