mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-11-09 19:36:44 +00:00
Add lots of comments and logs
This commit is contained in:
@@ -8,6 +8,11 @@ class ParserExit(RuntimeError):
|
||||
|
||||
|
||||
class ArgumentParser(ArgumentParser):
|
||||
"""
|
||||
An ArgumentParser wrapper that avoid printing messages to
|
||||
standard I/O.
|
||||
"""
|
||||
|
||||
def _print_message(self, *args, **kwargs):
|
||||
# do nothing
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user