Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update execution.md for latest behaviour #187

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions zh-CN/manual/recipe/execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

## 使用引号

Koishi 会自动将引号 (半角或者全角) 中的内容视为一个整体。这在很多场景中都非常有用,下面举出了一些典型的例子
与大多数命令行工具一样,你可以使用单引号或双引号将参数包裹,引号中的内容将被视为一个独立的参数。这在许多场景下都非常有用

- 当希望传入带空格的参数时 (默认行为是只解析空格前面的部分)
- 当希望传入以 `-` 开头的参数时 (默认的行为是解析成下一个选项)
- 当希望传入一个空字符串时作为参数时 (默认的行为是解析为 `true`)
- 当希望传入只由数字构成的字符串参数时 (默认行为是解析为 `number` 类型)

## 指令插值

Expand Down
Loading