Skip to content
Myr

Fix the typo

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

authored by winwangqi · committed by Abe Tomoaki · parent 019499b · Browse files · 1 file+1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:Readme_zh-CN.md+1 added-1 removed
413 unmodified lines
414使用`.command()`和`addCommand()`来指定选项的相关设置。当设置`hidden: true`时,该命令不会打印在帮助信息里。当设置`isDefault: true`时,若没有指定其他子命令,则会默认执行这个命令([样例](./examples/defaultCommand.js))。415416### 命令参数417418如上所述,字命令的参数可以通过`.command()`指定。对于有独立可执行文件的子命令来书,参数只能以这种方法指定。而对其他子命令,参数也可用以下方法。418如上所述,子命令的参数可以通过`.command()`指定。对于有独立可执行文件的子命令来说,参数只能以这种方法指定。而对其他子命令,参数也可用以下方法。419420在`Command`对象上使用`.argument()`来按次序指定命令参数。该方法接受参数名称和参数描述。参数可为必选的(尖括号表示,例如`<required>`)或可选的(方括号表示,例如`[optional]`)。421422示例代码:[argument.js](./examples/argument.js)
537 unmodified lines