@trenskow/arguments-parser 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +4 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -183,6 +183,10 @@ const argumentsParser = (
183
183
 
184
184
  helpUsage.push(`${opening}${strings?.options?.help?.placeholder || 'options'}${closing}`);
185
185
 
186
+ if (typeof options.usage === 'string') {
187
+ helpUsage.push(options.usage);
188
+ }
189
+
186
190
  let shortOptions = {};
187
191
 
188
192
  allKeyPaths
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trenskow/arguments-parser",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Yet another arguments parser.",
5
5
  "main": "index.js",
6
6
  "type": "module",