From e2cbe3c1f8c77957e9443e518cae1948c34ebcae Mon Sep 17 00:00:00 2001 From: StarHeart Date: Sun, 22 Oct 2023 14:28:29 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=20Docs:=20=E4=BF=AE=E5=A4=8D=20Alconna?= =?UTF-8?q?=20=E6=96=87=E6=A1=A3=20typo=20(#2429)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../version-2.1.0/best-practice/alconna/command.md | 2 +- .../version-2.1.1/best-practice/alconna/command.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/versioned_docs/version-2.1.0/best-practice/alconna/command.md b/website/versioned_docs/version-2.1.0/best-practice/alconna/command.md index 9d97b0ff288c..e77263e3038c 100644 --- a/website/versioned_docs/version-2.1.0/best-practice/alconna/command.md +++ b/website/versioned_docs/version-2.1.0/best-practice/alconna/command.md @@ -174,7 +174,7 @@ from arclet.alconna import Alconna, Args alc = Alconna("test", Args["foo", str]) alc.parse("test --foo abc") # 错误 -alc.parse("test abc") # 之前 +alc.parse("test abc") # 正确 ``` 若需要 `test --foo abc`,你应该使用 `Option`: diff --git a/website/versioned_docs/version-2.1.1/best-practice/alconna/command.md b/website/versioned_docs/version-2.1.1/best-practice/alconna/command.md index 9d97b0ff288c..e77263e3038c 100644 --- a/website/versioned_docs/version-2.1.1/best-practice/alconna/command.md +++ b/website/versioned_docs/version-2.1.1/best-practice/alconna/command.md @@ -174,7 +174,7 @@ from arclet.alconna import Alconna, Args alc = Alconna("test", Args["foo", str]) alc.parse("test --foo abc") # 错误 -alc.parse("test abc") # 之前 +alc.parse("test abc") # 正确 ``` 若需要 `test --foo abc`,你应该使用 `Option`: