Skip to content

Commit

Permalink
fix: use correct subcommand name in json generation (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmo314 authored Jun 20, 2024
1 parent 036d3e3 commit 2be926f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zcli-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export async function zcliJson<
})
) {
if (flags.all || !cmd.hidden) {
commands.push(generateCommand(cmd, [...path, command.name]));
commands.push(generateCommand(cmd, [...path, cmd.name]));
}
}

Expand Down

0 comments on commit 2be926f

Please sign in to comment.