diff options
author | Partouf <partouf@gmail.com> | 2018-10-26 13:04:13 +0200 |
---|---|---|
committer | Partouf <partouf@gmail.com> | 2018-10-26 13:04:13 +0200 |
commit | 5c68da0a4954920d3a3fa351ec2f4385bd36085d (patch) | |
tree | f09ed22b539d95038a906290dacf7ed626dfd22f /lib/compilers/argument-parsers.js | |
parent | 1adca9a5d1f18477b63206c0800fd710c168600d (diff) | |
download | compiler-explorer-5c68da0a4954920d3a3fa351ec2f4385bd36085d.tar.gz compiler-explorer-5c68da0a4954920d3a3fa351ec2f4385bd36085d.zip |
skip on empty lines
Diffstat (limited to 'lib/compilers/argument-parsers.js')
-rw-r--r-- | lib/compilers/argument-parsers.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/compilers/argument-parsers.js b/lib/compilers/argument-parsers.js index 65488f932..5516fd37d 100644 --- a/lib/compilers/argument-parsers.js +++ b/lib/compilers/argument-parsers.js @@ -37,8 +37,10 @@ class BaseParser { utils.eachLine(result.stdout + result.stderr, line => { const match = line.match(optionFinder); if (!match) { - if (previousOption) { + if (previousOption && (line.trim().length !== 0)) { options[previousOption].description += "\n" + line.trim(); + } else { + previousOption = false; } return; } |