mirror of
https://github.com/SikongJueluo/cc-utils.git
synced 2025-11-29 21:07:49 +08:00
fix: cli framework
fix: - cli command path wrong - help output nil
This commit is contained in:
@@ -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: [],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user