Comparing version 13.1.0 to 13.2.0
@@ -1315,2 +1315,9 @@ /** | ||
readonly allowUnknownFlags?: boolean; | ||
/** | ||
The number of spaces to use for indenting the help text. | ||
@default 2 | ||
*/ | ||
readonly helpIndent?: number; | ||
}; | ||
@@ -1317,0 +1324,0 @@ |
@@ -16,3 +16,3 @@ import process from 'node:process'; | ||
if (help.includes('\n')) { | ||
help = redent(help, 2); | ||
help = redent(help, options.helpIndent); | ||
} | ||
@@ -30,3 +30,3 @@ | ||
description &&= help ? `\n ${description}\n` : `\n${description}`; | ||
description &&= help ? redent(`\n${description}\n`, options.helpIndent) : `\n${description}`; | ||
help = `${description || ''}${help}\n`; | ||
@@ -33,0 +33,0 @@ |
@@ -83,2 +83,3 @@ import process from 'node:process'; | ||
allowParentFlags: true, | ||
helpIndent: 2, | ||
...options, | ||
@@ -85,0 +86,0 @@ }; |
{ | ||
"name": "meow", | ||
"version": "13.1.0", | ||
"version": "13.2.0", | ||
"description": "CLI app helper", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -295,2 +295,9 @@ # meow | ||
##### helpIndent | ||
Type `number`\ | ||
Default: `2` | ||
The number of spaces to use for indenting the help text. | ||
## Promises | ||
@@ -297,0 +304,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
419101
10362
315