mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-27 18:45:05 +08:00
🐛 fix duplicated help
This commit is contained in:
parent
b2f21ab974
commit
f87c23c9a7
@ -315,6 +315,7 @@ class ArgumentParser(ArgParser):
|
|||||||
def parse_args(self,
|
def parse_args(self,
|
||||||
args: Optional[Sequence[str]] = None,
|
args: Optional[Sequence[str]] = None,
|
||||||
namespace: Optional[Namespace] = None) -> Namespace:
|
namespace: Optional[Namespace] = None) -> Namespace:
|
||||||
|
setattr(self, "message", "")
|
||||||
return super().parse_args(args=args,
|
return super().parse_args(args=args,
|
||||||
namespace=namespace) # type: ignore
|
namespace=namespace) # type: ignore
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user