Skip to content

Commit

Permalink
📝 Docs: 修复 Alconna 文档 typo (#2429)
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt authored Oct 22, 2023
1 parent d3883ea commit e2cbe3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit e2cbe3c

Please sign in to comment.