mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-12-18 09:25:46 +08:00
📝 update api docs
This commit is contained in:
parent
a54fd2f235
commit
223b9bc887
@ -34,6 +34,9 @@ sidebarDepth: 0
|
|||||||
* `on_command` => `nonebot.plugin.on_command`
|
* `on_command` => `nonebot.plugin.on_command`
|
||||||
|
|
||||||
|
|
||||||
|
* `on_shell_command` => `nonebot.plugin.on_shell_command`
|
||||||
|
|
||||||
|
|
||||||
* `on_regex` => `nonebot.plugin.on_regex`
|
* `on_regex` => `nonebot.plugin.on_regex`
|
||||||
|
|
||||||
|
|
||||||
|
@ -170,6 +170,17 @@ Rule(async_function, run_sync(sync_function))
|
|||||||
:::
|
:::
|
||||||
|
|
||||||
|
|
||||||
|
## _class_ `ArgumentParser`
|
||||||
|
|
||||||
|
基类:`argparse.ArgumentParser`
|
||||||
|
|
||||||
|
|
||||||
|
* **说明**
|
||||||
|
|
||||||
|
`shell_like` 命令参数解析器,解析出错时不会退出程序。
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## `shell_command(*cmds, parser=None)`
|
## `shell_command(*cmds, parser=None)`
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user