opencode-marketplace 0.3.0 → 0.3.1

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/package.json +1 -1
  2. package/src/cli.ts +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-marketplace",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "CLI marketplace for OpenCode plugins",
5
5
  "type": "module",
6
6
  "author": "nikiforovall",
package/src/cli.ts CHANGED
@@ -68,7 +68,13 @@ export function run(argv = process.argv) {
68
68
  cli.version(version);
69
69
 
70
70
  try {
71
- cli.parse(argv);
71
+ const parsed = cli.parse(argv);
72
+
73
+ // Show help when no command is provided
74
+ if (!parsed.args.length && !parsed.options.help && !parsed.options.version) {
75
+ cli.outputHelp();
76
+ process.exit(0);
77
+ }
72
78
  } catch (error) {
73
79
  if (error instanceof Error && error.message.includes("missing required args")) {
74
80
  console.error(error.message);