(command: string[])
| 25 | * @returns 是否成功处理协议 |
| 26 | */ |
| 27 | export const processProtocolFromCommand = (command: string[]): boolean => { |
| 28 | // 这里第一个参数是程序名称 忽略此 仅遍历参数 |
| 29 | for (let i = 1; i < command.length; i++) { |
| 30 | const arg = command[i]; |
| 31 | if (trySendCustomProtocol(arg)) return true; |
| 32 | } |
| 33 | return false; |
| 34 | }; |
no test coverage detected