diff --git a/twitchdl/commands/__init__.py b/twitchdl/commands/__init__.py index bf7dd53..715f524 100644 --- a/twitchdl/commands/__init__.py +++ b/twitchdl/commands/__init__.py @@ -1,11 +1,13 @@ from .clips import clips from .download import download +from .env import env from .info import info from .videos import videos __all__ = [ clips, download, + env, info, videos, ] diff --git a/twitchdl/commands/env.py b/twitchdl/commands/env.py new file mode 100644 index 0000000..72174b6 --- /dev/null +++ b/twitchdl/commands/env.py @@ -0,0 +1,9 @@ +import platform +import sys +import twitchdl + + +def env(args): + print("twitch-dl", twitchdl.__version__) + print("Platform:", platform.platform()) + print("Python", sys.version) diff --git a/twitchdl/console.py b/twitchdl/console.py index fab2f1a..1fdb7c3 100644 --- a/twitchdl/console.py +++ b/twitchdl/console.py @@ -207,6 +207,11 @@ COMMANDS = [ "default": False, }), ], + ), + Command( + name="env", + description="Print environment information for inclusion in bug reports.", + arguments=[], ) ]