commander 2.15.1 → 15.0.0: deprecates 5 API(s)
Compared with 2.15.1: `Command.option`, `Command.description`, `Command.outputHelp`, `Command.help`, `CommandOptions.noHelp`. 5 newly deprecated.
registry.npmjs.orgquote checked
- 15.0.0from 2.15.1
- Your code5 things to find
Nemotron fixes
In its own wordsread from the page
- Command.option: Define option with `flags`, `description`, and optional argument parsing function or `defaultValue` or both. The `flags` string contains the short and/or long flags, separated by comma, a pipe or space. A required option-argument is indicated by `<>` and an optional option-argument by `[]`. See the README for more details, and see also addOption() and requiredOption(). since v7, instead use choices or a custom function
- Command.description: Set the description. Get the description. since v8, instead use .argument to add command argument with description
- Command.outputHelp: Output help information for this command. Outputs built-in help, and custom text added using `.addHelpText()`. since v7
- Command.help: Output help information and exit. Outputs built-in help, and custom text added using `.addHelpText()`. since v7
- CommandOptions.noHelp: since v7, replaced by hidden
What Teire looks for in your code
- Command.option (ts)
- Command.description (ts)
- Command.outputHelp (ts)
- Command.help (ts)
- CommandOptions.noHelp (ts)
Does it reach your code?