# Commander.js 11.1.0 - Product: Commander.js (https://whatsnew.fyi/product/commander) - Vendor: TJ Holowaychuk - Date: 2023-10-13 - Version: 11.1.0 - Original notes: https://www.npmjs.com/package/commander/v/11.1.0 - Permalink: https://whatsnew.fyi/product/commander/releases/11.1.0 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **fixed** — Update TypeScript OptionValueSource to allow any string, to match supported use of custom sources - **fixed** — Add TypeScript type that Command.version() can also be used as getter - **fixed** — Add null return type to Commands.executableDir() TypeScript declaration, for when not configured - **fixed** — Fix subcommands with an executable handler and only a short help flag to be handled correctly by the parent's help command - **added** — Add registeredArguments property on Command with the array of defined Argument, like Command.options for Option - **added** — Add TypeScript declarations for Option properties: envVar, presetArg - **added** — Add TypeScript declarations for Argument properties: argChoices, defaultValue, defaultValueDescription - **added** — Add example file showing how to configure help to display any custom usage in the list of subcommands - **changed** — Refactor TypeScript configs for multiple use-cases, and enable checks in JavaScript files in supporting editors - **deprecated** — Command._args is now available as registeredArguments ###### Fixed - TypeScript: update `OptionValueSource` to allow any string, to match supported use of custom sources ([#1983]) - TypeScript: add that `Command.version()` can also be used as getter ([#1982]) - TypeScript: add null return type to `Commands.executableDir()`, for when not configured ([#1965]) - subcommands with an executable handler and only a short help flag are now handled correctly by the parent's help command ([#1930]) ###### Added - `registeredArguments` property on `Command` with the array of defined `Argument` (like `Command.options` for `Option`) ([#2010]) - TypeScript declarations for Option properties: `envVar`, `presetArg` ([#2019]) - TypeScript declarations for Argument properties: `argChoices`, `defaultValue`, `defaultValueDescription` ([#2019]) - example file which shows how to configure help to display any custom usage in the list of subcommands ([#1896]) ###### Changed - (developer) refactor TypeScript configs for multiple use-cases, and enable checks in JavaScript files in supporting editors ([#1969]) ###### Deprecated - `Command._args` was private anyway, but now available as `registeredArguments` ([#2010])