Skip to content

Commit

Permalink
Update execution.md for latest behaviour (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikoTan authored Aug 25, 2024
1 parent 925cd0e commit 00a544f
Showing 1 changed file with 1 addition and 2 deletions.
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

0 comments on commit 00a544f

Please sign in to comment.