UNPKG

typescript-closure-tools

Version:

Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files

24 lines (23 loc) 728 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var options = process.argv.slice(2); function get_option(name) { var index = options.indexOf('--' + name); if (index !== -1) { var value = options[index + 1]; options.splice(index, 2); return value; } } exports.provides = get_option('provides'); exports.globals = get_option('globals'); exports.inputRoot = get_option('input_root') || ''; exports.outputRoot = get_option('output_root') || ''; exports.includePrivate = get_option('include_private') || false; exports.todo = []; for (var i = 0; i < options.length; i += 2) { exports.todo.push({ input: options[i], output: options[i + 1] }); }