Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Commit 30a7c22

Browse files
committed
fix: remove unnecessary --index-urls deprecation warning
--index-urls was never a public option, so there's nothing to deprecate.
1 parent 30b0615 commit 30a7c22

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

mcp_run_python/deno/src/main.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const VERSION = '0.0.13'
2020
export async function main() {
2121
const { args } = Deno
2222
const flags = parseArgs(Deno.args, {
23-
string: ['deps', 'return-mode', 'port', 'index-urls'],
23+
string: ['deps', 'return-mode', 'port'],
2424
collect: ['dep', 'index-url'],
2525
default: { port: '3001', 'return-mode': 'xml' },
2626
})
@@ -29,19 +29,12 @@ export async function main() {
2929
if (flags.deps) {
3030
console.warn('Warning: --deps is deprecated, use --dep instead (can be repeated)')
3131
}
32-
if (flags['index-urls']) {
33-
console.warn('Warning: --index-urls is deprecated, use --index-url instead (can be repeated)')
34-
}
35-
3632
// Support both new repeatable args and old comma-separated (backwards compat)
3733
const deps: string[] = [
3834
...((flags.dep as string[] | undefined) ?? []),
3935
...(flags.deps?.split(',').filter(Boolean) ?? []),
4036
]
41-
const indexUrls: string[] = [
42-
...((flags['index-url'] as string[] | undefined) ?? []),
43-
...(flags['index-urls']?.split(',').filter(Boolean) ?? []),
44-
]
37+
const indexUrls: string[] = (flags['index-url'] as string[] | undefined) ?? []
4538
if (args.length >= 1) {
4639
if (args[0] === 'stdio') {
4740
await runStdio(deps, indexUrls, flags['return-mode'])

0 commit comments

Comments
 (0)