| 65241 | const E4 = l3._["--"]; |
| 65242 | m5 = m5.slice(0, -E4.length || void 0), b3(h4, w3(c4), m5, u3), b3(h4, w3(v5), E4, u3); |
| 65243 | } else b3(h4, w3(c4), m5, u3); |
| 65244 | Object.assign(l3._, h4); |
| 65245 | } |
| 65246 | const $6 = { ...l3, showVersion: f4, showHelp: u3 }; |
| 65247 | return typeof r3 == "function" && r3($6), { command: t2, ...$6 }; |
| 65248 | } |
| 65249 | function z2(t2, e3) { |
| 65250 | const r3 = /* @__PURE__ */ new Map(); |
| 65251 | for (const n2 of e3) { |
| 65252 | const a4 = [n2.options.name], { alias: i3 } = n2.options; |
| 65253 | i3 && (Array.isArray(i3) ? a4.push(...i3) : a4.push(i3)); |
| 65254 | for (const s2 of a4) { |
| 65255 | if (r3.has(s2)) throw new Error(`Duplicate command name found: ${d3(s2)}`); |
| 65256 | r3.set(s2, n2); |
| 65257 | } |