"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.bootstrap = void 0;
const yargs = require("yargs");
const pkg = require('../../package.json'); // tslint:disable-line:no-var-requires
/**
 * @desc
 *  Invokes the Serenity/JS Playground command line interface
 *
 * @param {string[]} argv
 * @param {Interceptor} interceptor
 *
 * @package
 */
function bootstrap(argv, interceptor) {
    yargs()
        .version(require('../../package.json').version)
        .demand(1)
        .usage('Usage: $0 <command> [options]')
        .example('$0 start [options]', 'updates the Serenity jar to the latest version')
        .example('$0 <command> --help', 'shows the available parameters')
        .epilog(`copyright (C) 2016-${new Date().getFullYear()} ${pkg.author.name} <${pkg.author.email}>`)
        .commandDir('./commands')
        .alias('h', 'help').help()
        .parse(argv, {}, interceptor);
}
exports.bootstrap = bootstrap;
//# sourceMappingURL=bootstrap.js.map