Add --cog-path CLI argument (#6510)

This commit is contained in:
cswimr
2026-01-05 16:31:10 -06:00
committed by GitHub
parent dd3b9a01d3
commit fec1818e5a
3 changed files with 57 additions and 17 deletions

View File

@@ -1240,6 +1240,15 @@ class Red(
)
)
if self._cli_flags.cog_path:
for path in self._cli_flags.cog_path:
path = Path(path)
try:
await self._cog_mgr.add_path(path, persist=False)
log.info("Added cog path: %s", path)
except Exception:
log.exception("Failed to add cog path: %s", path)
if packages:
# Load permissions first, for security reasons
try: