Skip to content

Commit ca393fc

Browse files
committed
Fixes #10
1 parent 8588514 commit ca393fc

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

pkgm.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,7 @@ const parsedArgs = parse_args(Deno.args, {
2525
});
2626

2727
if (parsedArgs.help) {
28-
const status = await new Deno.Command("pkgx", {
29-
args: ["gh", "repo", "view", "pkgxdev/pkgm"],
30-
clearEnv: true,
31-
env: {
32-
"PATH": standardPath(),
33-
"HOME": Deno.env.get("HOME")!,
34-
},
35-
}).spawn().status;
36-
Deno.exit(status.code);
28+
console.log("https://github.com/pkgxdev/pkgm");
3729
} else if (parsedArgs.version) {
3830
console.log("pkgm 0.0.0+dev");
3931
} else {
@@ -66,7 +58,11 @@ if (parsedArgs.help) {
6658
break;
6759
}
6860
default:
69-
console.error("invalid usage");
61+
if (Deno.args.length === 0) {
62+
console.error("https://github.com/pkgxdev/pkgm");
63+
} else {
64+
console.error("invalid usage");
65+
}
7066
Deno.exit(2);
7167
}
7268
}

0 commit comments

Comments
 (0)