@trenskow/arguments-parser 0.3.119 → 0.3.121

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.
@@ -63,8 +63,9 @@ export default async (current = '') => {
63
63
  return [];
64
64
  }
65
65
 
66
- return (await readdir(join(current, '../')))
66
+ return await parallel(((await readdir(join(current, '../')))
67
67
  .filter((file) => !file.startsWith('.'))
68
- .map((file) => join(current, '../', file));
68
+ .map((file) => join(current, '../', file)))
69
+ .map(async (file) => (await safeStat(file))?.isDirectory() ? `${file}/` : file));
69
70
 
70
71
  };
@@ -90,7 +90,7 @@ const argumentsParser = (output) => {
90
90
  return output(Object.keys(commands)
91
91
  .filter((command) => command.startsWith(tool))
92
92
  .map((command) => ({
93
- command,
93
+ command: caseit(command, 'kebab'),
94
94
  description: commands[command].description
95
95
  })));
96
96
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trenskow/arguments-parser",
3
- "version": "0.3.119",
3
+ "version": "0.3.121",
4
4
  "description": "Yet another arguments parser.",
5
5
  "main": "index.js",
6
6
  "type": "module",