mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +00:00
Print help when no args are provided to python -m discord
This commit is contained in:
parent
18050aecd7
commit
86de926678
@ -56,6 +56,8 @@ def show_version() -> None:
|
|||||||
def core(parser: argparse.ArgumentParser, args: argparse.Namespace) -> None:
|
def core(parser: argparse.ArgumentParser, args: argparse.Namespace) -> None:
|
||||||
if args.version:
|
if args.version:
|
||||||
show_version()
|
show_version()
|
||||||
|
else:
|
||||||
|
parser.print_help()
|
||||||
|
|
||||||
|
|
||||||
_bot_template = """#!/usr/bin/env python3
|
_bot_template = """#!/usr/bin/env python3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user