File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
lib/internal/util/parse_args Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ const {
1313 ObjectPrototypeHasOwnProperty : ObjectHasOwn ,
1414 StringPrototypeCharAt,
1515 StringPrototypeIndexOf,
16+ StringPrototypePadEnd,
1617 StringPrototypeSlice,
1718 StringPrototypeStartsWith,
1819} = primordials ;
@@ -332,9 +333,9 @@ function formatHelpTextForPrint(longOption, optionConfig) {
332333
333334 if ( help ) {
334335 if ( helpTextForPrint . length > layoutSpacing ) {
335- helpTextForPrint += '\n' + '' . padEnd ( layoutSpacing ) + help ;
336+ helpTextForPrint += `\n ${ StringPrototypePadEnd ( '' , layoutSpacing ) } ${ help } ` ;
336337 } else {
337- helpTextForPrint = helpTextForPrint . padEnd ( layoutSpacing ) + help ;
338+ helpTextForPrint = ` ${ StringPrototypePadEnd ( helpTextForPrint , layoutSpacing ) } ${ help } ` ;
338339 }
339340 }
340341
You can’t perform that action at this time.
0 commit comments