@trenskow/arguments-parser 0.3.1 → 0.3.3

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 +10 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -83,6 +83,12 @@ const argumentsParser = (
83
83
 
84
84
  print();
85
85
 
86
+ if (command) {
87
+ print.bold(command.description);
88
+ }
89
+
90
+ print();
91
+
86
92
  print(helpUsage.join(' '));
87
93
 
88
94
  if (helpOptions) {
@@ -183,6 +189,10 @@ const argumentsParser = (
183
189
 
184
190
  helpUsage.push(`${opening}${strings?.options?.help?.placeholder || 'options'}${closing}`);
185
191
 
192
+ if (typeof options.usage === 'string') {
193
+ helpUsage.push(options.usage);
194
+ }
195
+
186
196
  let shortOptions = {};
187
197
 
188
198
  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.3",
4
4
  "description": "Yet another arguments parser.",
5
5
  "main": "index.js",
6
6
  "type": "module",