fix: -h short flag now works on subcommands.

This commit is contained in:
2026-06-25 18:02:09 -04:00
parent c5020bd6a6
commit 6ec09309dd
3 changed files with 3 additions and 3 deletions

View File

@@ -123,7 +123,7 @@ parse_args :: proc(args: []string, out: io.Stream, err: io.Stream) -> (cmd: Comm
cmd.config_path = default_config_path(home, context.temp_allocator)
}
if has_flag(&cmd, "help") {
if has_flag(&cmd, "help") || has_flag(&cmd, "h") {
print_command_help(&cmd)
return cmd, false
}