fix node 4 problem
parent
a485da206c
commit
f3cf50515d
|
@ -48,7 +48,8 @@ function getMarkdownSyntax(options) {
|
||||||
function formatCLIOptions(cliOptions) {
|
function formatCLIOptions(cliOptions) {
|
||||||
return cliOptions
|
return cliOptions
|
||||||
.map(option => {
|
.map(option => {
|
||||||
const [name, value] = option;
|
const name = option[0];
|
||||||
|
const value = option[1];
|
||||||
return value === true ? name : `${name} ${value}`;
|
return value === true ? name : `${name} ${value}`;
|
||||||
})
|
})
|
||||||
.join("\n");
|
.join("\n");
|
||||||
|
|
Loading…
Reference in New Issue