fix: cli framework

fix:
- cli command path wrong
- help output nil
This commit is contained in:
2025-10-27 22:02:15 +08:00
parent 7a17ca7fbf
commit 1891259ee7
3 changed files with 10 additions and 5 deletions

View File

@@ -81,7 +81,7 @@ export function parseArguments<TContext extends object>(
): Result<ParseResult<TContext>, CliError> {
const result: ParseResult<TContext> = {
command: rootCommand,
commandPath: [],
commandPath: [rootCommand.name],
options: {},
remaining: [],
};