diff --git a/src/cli/help.ts b/src/cli/help.ts index 49a53aa3de0..6196e86594a 100644 --- a/src/cli/help.ts +++ b/src/cli/help.ts @@ -1,5 +1,6 @@ import { z } from "zod"; +import type { CliArgvSchemas } from "./argvParser.js"; import { declaredOptionType, optionFlagName } from "./optionFields.js"; /** @@ -30,15 +31,10 @@ export interface GlobalOptionsHelp { | undefined; } -export interface CommandHelp { +export interface CommandHelp extends CliArgvSchemas { readonly description?: string | undefined; /** Printed as `name@version` in the title. */ readonly version?: string | undefined; - /** Positionals, in argv order. */ - readonly args?: z.ZodObject | undefined; - readonly options?: z.ZodObject | undefined; - /** Short alias by option key, such as `{ help: "h" }`. */ - readonly alias?: Readonly> | undefined; /** A paragraph printed after the options. */ readonly hint?: string | undefined; /** Omitted for an entry that accepts only its own options. */