2025-06-06 11:42:04 +08:00
|
|
|
import type { CommandModule } from "yargs"
|
|
|
|
|
|
2025-12-03 02:52:05 +08:00
|
|
|
type WithDoubleDash<T> = T & { "--"?: string[] }
|
|
|
|
|
|
|
|
|
|
export function cmd<T, U>(input: CommandModule<T, WithDoubleDash<U>>) {
|
2025-06-06 11:42:04 +08:00
|
|
|
return input
|
|
|
|
|
}
|