Skip to content
Myr

Remove translated english text, and add new TOC items

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by John Gee · committed by John Gee · parent 8b656f9 · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:Readme_zh-CN.md+3 added-1 removed
13 unmodified lines
14 - [常用选项类型,boolean和值](#%e5%b8%b8%e7%94%a8%e9%80%89%e9%a1%b9%e7%b1%bb%e5%9e%8bboolean%e5%92%8c%e5%80%bc)15 - [默认选项值](#%e9%bb%98%e8%ae%a4%e9%80%89%e9%a1%b9%e5%80%bc)16 - [其他选项类型,可忽略的布尔值和标志值](#%e5%85%b6%e4%bb%96%e9%80%89%e9%a1%b9%e7%b1%bb%e5%9e%8b%e5%8f%af%e5%bf%bd%e7%95%a5%e7%9a%84%e5%b8%83%e5%b0%94%e5%80%bc%e5%92%8c%e6%a0%87%e5%bf%97%e5%80%bc)17 - [自定义选项处理](#%e8%87%aa%e5%ae%9a%e4%b9%89%e9%80%89%e9%a1%b9%e5%a4%84%e7%90%86)18 - [必需的选项](#%e5%bf%85%e9%9c%80%e7%9a%84%e9%80%89%e9%a1%b9)19 - [版本选项](#%e7%89%88%e6%9c%ac%e9%80%89%e9%a1%b9)20 - [Commands](#commands)21 - [指定参数语法](#%e6%8c%87%e5%ae%9a%e5%8f%82%e6%95%b0%e8%af%ad%e6%b3%95)22 - [操作处理程序(Action handler) (子)命令](#%e6%93%8d%e4%bd%9c%e5%a4%84%e7%90%86%e7%a8%8b%e5%ba%8faction-handler-%e5%ad%90%e5%91%bd%e4%bb%a4)
8 unmodified lines
31 - [零碎知识](#%e9%9b%b6%e7%a2%8e%e7%9f%a5%e8%af%86)32 - [TypeScript](#typescript)33 - [Node 选项例如 `--harmony`](#node-%e9%80%89%e9%a1%b9%e4%be%8b%e5%a6%82---harmony)34 - [Node 调试](#node-%e8%b0%83%e8%af%95)35 - [重载退出(exit)处理](#%e9%87%8d%e8%bd%bd%e9%80%80%e5%87%baexit%e5%a4%84%e7%90%86)36 - [例子](#%e4%be%8b%e5%ad%90)37 - [许可证](#%e8%ae%b8%e5%8f%af%e8%af%81)38 - [支持](#%e6%94%af%e6%8c%81)39
201 unmodified lines
241```242243### 必需的选项244243你可以使用`.requiredOption`指定一个必需的(强制性的)选项,这样的选项在命令行的命令中必须被给出,除非它拥有一个默认的值。另外,这个方法在格式上和使用`.option`一样:The method is otherwise the same as `.option` in format, 采用标志和说明,以及可选的默认值或自定义处理。245你可以使用`.requiredOption`指定一个必需的(强制性的)选项,这样的选项在命令行的命令中必须被给出,除非它拥有一个默认的值。另外,这个方法在格式上和使用`.option`一样采用标志和说明,以及可选的默认值或自定义处理。246247```js248const program = require('commander');249
394 unmodified lines