[bunx] Make help a little prettier

This commit is contained in:
Jarred Sumner
2022-12-21 00:56:50 -08:00
parent 83602b6834
commit 435fdbfddc
2 changed files with 46 additions and 18 deletions

View File

@@ -895,6 +895,11 @@ pub const Command = struct {
if (strings.endsWithComptime(argv0, "bunx"))
return .BunxCommand;
if (comptime Environment.isDebug) {
if (strings.endsWithComptime(argv0, "bunx-debug"))
return .BunxCommand;
}
var next_arg = ((args_iter.next()) orelse return .AutoCommand);
while (next_arg[0] == '-') {
next_arg = ((args_iter.next()) orelse return .AutoCommand);