Skip to content

Command unable to specify a "version" option. #63

@mattrothenberg

Description

@mattrothenberg

Hello!

I would like one of my commands to have a version option so that users can look up a resource by an optional version ID.

I've set my options as such:

export const options = zod.object({
	owner: zod.string().describe('Model owner'),
	name: zod.string().describe('Model name'),
	version: zod.string().optional().describe('Model version'),
	silent: zod.boolean().optional().describe('Silence output'),
});

I'm noticing, however, that no matter what the user passes via --version, the underlying app version is returned and the command never runs.

I'm not sure whether this is unexpected behavior, or something I'm doing silly. Probably the latter :) Let me know if I can provide any more detail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions