mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Print help when no args are provided to python -m discord
This commit is contained in:
1 parent
18050aecd7
commit
86de926678
1 file changed
+2
@@ -56,6 +56,8 @@ def show_version() -> None:
|
||||
def core(parser: argparse.ArgumentParser, args: argparse.Namespace) -> None:
|
||||
if args.version:
|
||||
show_version()
|
||||
else:
|
||||
parser.print_help()
|
||||
|
||||
|
||||
_bot_template = """#!/usr/bin/env python3
|
||||
|
||||
Reference in new issue
Block a user