#!/usr/bin/env node
import * as yargs from 'yargs';
import { runTypedTest } from './runTypedTest';
const cliOptions = yargs
    .options({
    mode: {
        choices: ['node', 'browser'],
        requiresArg: true,
        defaultDescription: 'node',
        group: 'Typed Test',
    },
    timeout: {
        number: true,
        requiresArg: true,
        defaultDescription: '2000',
        group: 'Typed Test',
    },
    browser: {
        choices: ['chrome', 'chromium', 'firefox', 'opera', 'safari', 'ie'],
        defaultDescription: 'chrome',
        group: 'Browser Mode',
    },
    keepAlive: {
        boolean: true,
        defaultDescription: 'false',
        group: 'Browser Mode',
    },
    typeCheck: {
        boolean: true,
        defaultDescription: 'false',
        group: 'Typed Test',
    },
    watch: {
        boolean: true,
        defaultDescription: 'false',
        group: 'Typed Test',
    },
})
    .help().argv;
const options = Object.assign({}, cliOptions);
if (cliOptions._.length > 0) {
    options.files = cliOptions._;
}
runTypedTest(options);
//# sourceMappingURL=cli.js.map