mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
[Downloader] [p]pipinstall: Handle no args
This commit is contained in:
parent
82807ffe69
commit
9b940de854
@ -194,6 +194,8 @@ class Downloader(commands.Cog):
|
|||||||
@checks.is_owner()
|
@checks.is_owner()
|
||||||
async def pipinstall(self, ctx, *deps: str):
|
async def pipinstall(self, ctx, *deps: str):
|
||||||
"""Install a group of dependencies using pip."""
|
"""Install a group of dependencies using pip."""
|
||||||
|
if not deps:
|
||||||
|
return await ctx.send_help()
|
||||||
repo = Repo("", "", "", Path.cwd(), loop=ctx.bot.loop)
|
repo = Repo("", "", "", Path.cwd(), loop=ctx.bot.loop)
|
||||||
success = await repo.install_raw_requirements(deps, self.LIB_PATH)
|
success = await repo.install_raw_requirements(deps, self.LIB_PATH)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user