[Downloader] [p]pipinstall: Handle no args

This commit is contained in:
Twentysix 2019-02-14 23:39:38 +01:00
parent 82807ffe69
commit 9b940de854

View File

@ -194,6 +194,8 @@ class Downloader(commands.Cog):
@checks.is_owner()
async def pipinstall(self, ctx, *deps: str):
"""Install a group of dependencies using pip."""
if not deps:
return await ctx.send_help()
repo = Repo("", "", "", Path.cwd(), loop=ctx.bot.loop)
success = await repo.install_raw_requirements(deps, self.LIB_PATH)