🐛 fix duplicated help

This commit is contained in:
Muchan 2021-06-17 10:14:36 +08:00
parent b2f21ab974
commit f87c23c9a7

View File

@ -315,6 +315,7 @@ class ArgumentParser(ArgParser):
def parse_args(self,
args: Optional[Sequence[str]] = None,
namespace: Optional[Namespace] = None) -> Namespace:
setattr(self, "message", "")
return super().parse_args(args=args,
namespace=namespace) # type: ignore