@clerc/plugin-help 0.12.2 → 0.12.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.
package/dist/index.js CHANGED
@@ -189,13 +189,15 @@ const helpPlugin = ({
189
189
  }
190
190
  });
191
191
  }
192
- cli.inspector((ctx) => {
192
+ cli.inspector((ctx, next) => {
193
193
  if (ctx.raw.mergedFlags.h || ctx.raw.mergedFlags.help) {
194
194
  if (ctx.raw._.length) {
195
195
  showSubcommandHelp(ctx, ctx.raw._);
196
196
  } else {
197
197
  showHelp(ctx, notes, examples);
198
198
  }
199
+ } else {
200
+ next();
199
201
  }
200
202
  });
201
203
  return cli;
package/dist/index.mjs CHANGED
@@ -189,13 +189,15 @@ const helpPlugin = ({
189
189
  }
190
190
  });
191
191
  }
192
- cli.inspector((ctx) => {
192
+ cli.inspector((ctx, next) => {
193
193
  if (ctx.raw.mergedFlags.h || ctx.raw.mergedFlags.help) {
194
194
  if (ctx.raw._.length) {
195
195
  showSubcommandHelp(ctx, ctx.raw._);
196
196
  } else {
197
197
  showHelp(ctx, notes, examples);
198
198
  }
199
+ } else {
200
+ next();
199
201
  }
200
202
  });
201
203
  return cli;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerc/plugin-help",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
4
4
  "author": "Ray <nn_201312@163.com> (https://github.com/so1ve)",
5
5
  "description": "Clerc plugin help",
6
6
  "keywords": [
@@ -51,12 +51,12 @@
51
51
  "@clerc/core": "*"
52
52
  },
53
53
  "dependencies": {
54
- "picocolors": "^1.0.0",
55
- "@clerc/toolkit": "0.12.2",
56
- "@clerc/utils": "0.12.2"
54
+ "@clerc/toolkit": "0.12.3",
55
+ "@clerc/utils": "0.12.3",
56
+ "picocolors": "^1.0.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@clerc/core": "0.12.2"
59
+ "@clerc/core": "0.12.3"
60
60
  },
61
61
  "scripts": {
62
62
  "build": "puild",