mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2026-05-26 08:44:23 -04:00
Ensure that instance names are treated as positional args (#6780)
This commit is contained in:
@@ -169,11 +169,12 @@ async def call(
|
|||||||
"redbot._update",
|
"redbot._update",
|
||||||
*debug_args,
|
*debug_args,
|
||||||
CMD_NAME,
|
CMD_NAME,
|
||||||
instance_name,
|
|
||||||
arg_names.RED_VERSION,
|
arg_names.RED_VERSION,
|
||||||
str(red_version),
|
str(red_version),
|
||||||
arg_names.PYTHON_VERSION,
|
arg_names.PYTHON_VERSION,
|
||||||
str(python_version),
|
str(python_version),
|
||||||
|
"--",
|
||||||
|
instance_name,
|
||||||
]
|
]
|
||||||
if ignore_prefix:
|
if ignore_prefix:
|
||||||
args.append(arg_names.CHECK_OTHER_PYTHON_INSTALLS)
|
args.append(arg_names.CHECK_OTHER_PYTHON_INSTALLS)
|
||||||
|
|||||||
@@ -393,6 +393,7 @@ async def _call_cog_update(instance_name: str, *, update_repos: bool) -> Tuple[i
|
|||||||
"redbot._update.internal",
|
"redbot._update.internal",
|
||||||
*debug_args,
|
*debug_args,
|
||||||
_UPDATE_COGS_CMD_NAME,
|
_UPDATE_COGS_CMD_NAME,
|
||||||
|
"--",
|
||||||
instance_name,
|
instance_name,
|
||||||
]
|
]
|
||||||
if update_repos:
|
if update_repos:
|
||||||
|
|||||||
@@ -653,6 +653,7 @@ class Updater:
|
|||||||
"redbot.setup",
|
"redbot.setup",
|
||||||
"backup",
|
"backup",
|
||||||
*debug_args,
|
*debug_args,
|
||||||
|
"--",
|
||||||
instance_name,
|
instance_name,
|
||||||
str(instance_backups_dir),
|
str(instance_backups_dir),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user