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.
- package/package.json +1 -1
- package/src/cli.ts +7 -1
package/package.json
CHANGED
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);
|