mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-07 12:36:47 +00:00
📝 update docstring
This commit is contained in:
@ -326,7 +326,7 @@ def shell_command(*cmds: Union[str, Tuple[str, ...]],
|
||||
from nonebot.rule import ArgumentParser
|
||||
|
||||
parser = ArgumentParser()
|
||||
parser.add_argument("-a", type=bool)
|
||||
parser.add_argument("-a", action="store_true")
|
||||
|
||||
rule = shell_command("ls", parser=parser)
|
||||
|
||||
|
Reference in New Issue
Block a user