(argv: readonly string[])
| 63 | * `zennotes:` deep links handled elsewhere. |
| 64 | */ |
| 65 | export function markdownPathsFromArgv(argv: readonly string[]): string[] { |
| 66 | const out: string[] = [] |
| 67 | for (let i = 1; i < argv.length; i++) { |
| 68 | const arg = argv[i] |
| 69 | if (!arg || arg.startsWith('-')) continue |
| 70 | if (arg.includes('://')) continue |
| 71 | if (!isMarkdownFilePath(arg)) continue |
| 72 | out.push(arg) |
| 73 | } |
| 74 | return out |
| 75 | } |
no test coverage detected