import yargs, { type Argv } from 'yargs';
import { hideBin } from 'yargs/helpers';
import { handler } from './handler.ts';
export const cli = (): void => {
// yargs does not provide a way to pass generic to type args.
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
const argv = yargs(hideBin(process.argv)) as Argv<{
input: string;
output?: string;
verbose?: boolean;
}>;
void argv
.command(
'build