Skip to content

Commit

Permalink
Remove translated english text, and add new TOC items
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn committed Oct 28, 2019
1 parent 8b656f9 commit 7fa903f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Readme_zh-CN.md
Expand Up @@ -15,6 +15,7 @@
- [默认选项值](#%e9%bb%98%e8%ae%a4%e9%80%89%e9%a1%b9%e5%80%bc)
- [其他选项类型,可忽略的布尔值和标志值](#%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)
- [自定义选项处理](#%e8%87%aa%e5%ae%9a%e4%b9%89%e9%80%89%e9%a1%b9%e5%a4%84%e7%90%86)
- [必需的选项](#%e5%bf%85%e9%9c%80%e7%9a%84%e9%80%89%e9%a1%b9)
- [版本选项](#%e7%89%88%e6%9c%ac%e9%80%89%e9%a1%b9)
- [Commands](#commands)
- [指定参数语法](#%e6%8c%87%e5%ae%9a%e5%8f%82%e6%95%b0%e8%af%ad%e6%b3%95)
Expand All @@ -31,6 +32,7 @@
- [TypeScript](#typescript)
- [Node 选项例如 `--harmony`](#node-%e9%80%89%e9%a1%b9%e4%be%8b%e5%a6%82---harmony)
- [Node 调试](#node-%e8%b0%83%e8%af%95)
- [重载退出(exit)处理](#%e9%87%8d%e8%bd%bd%e9%80%80%e5%87%baexit%e5%a4%84%e7%90%86)
- [例子](#%e4%be%8b%e5%ad%90)
- [许可证](#%e8%ae%b8%e5%8f%af%e8%af%81)
- [支持](#%e6%94%af%e6%8c%81)
Expand Down Expand Up @@ -240,7 +242,7 @@ $ custom --list x,y,z
### 必需的选项
你可以使用`.requiredOption`指定一个必需的(强制性的)选项,这样的选项在命令行的命令中必须被给出,除非它拥有一个默认的值。另外,这个方法在格式上和使用`.option`一样:The method is otherwise the same as `.option` in format, 采用标志和说明,以及可选的默认值或自定义处理。
你可以使用`.requiredOption`指定一个必需的(强制性的)选项,这样的选项在命令行的命令中必须被给出,除非它拥有一个默认的值。另外,这个方法在格式上和使用`.option`一样采用标志和说明,以及可选的默认值或自定义处理。
```js
const program = require('commander');
Expand Down

0 comments on commit 7fa903f

Please sign in to comment.