From 223b9bc887b8bd0239ac7ac2a7edab90bc573b95 Mon Sep 17 00:00:00 2001 From: AkiraXie Date: Tue, 2 Feb 2021 04:16:37 +0000 Subject: [PATCH] :memo: update api docs --- docs/api/nonebot.md | 3 +++ docs/api/rule.md | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/docs/api/nonebot.md b/docs/api/nonebot.md index d2ef4eb4..58f7fbda 100644 --- a/docs/api/nonebot.md +++ b/docs/api/nonebot.md @@ -34,6 +34,9 @@ sidebarDepth: 0 * `on_command` => `nonebot.plugin.on_command` +* `on_shell_command` => `nonebot.plugin.on_shell_command` + + * `on_regex` => `nonebot.plugin.on_regex` diff --git a/docs/api/rule.md b/docs/api/rule.md index b569a400..25a9fe13 100644 --- a/docs/api/rule.md +++ b/docs/api/rule.md @@ -170,6 +170,17 @@ Rule(async_function, run_sync(sync_function)) ::: +## _class_ `ArgumentParser` + +基类:`argparse.ArgumentParser` + + +* **说明** + + `shell_like` 命令参数解析器,解析出错时不会退出程序。 + + + ## `shell_command(*cmds, parser=None)`