Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.option('verbose', {
abbr: 'V',
flag: true,
help: 'More verbose output'
})
.option('version', {
abbr: 'v',
flag: true,
help: 'Version info',
callback: function () {
return packageJson.name + ' v' + packageJson.version;
}
}).parse();
console.log('Starting ' + packageJson.name + ' v' + packageJson.version);
var startServer = function (configPath, config) {
return require('tileserver-gl-light/src/server.js')({
configPath: configPath,
config: config,
bind: opts.bind,
port: opts.port,
cors: opts.cors
});
};
var startWithMBTiles = function (mbtilesFile) {
console.log('Automatically creating config file for ' + mbtilesFile);
mbtilesFile = path.resolve(process.cwd(), mbtilesFile);
callback: function () {
return packageJson.name + ' v' + packageJson.version;
}
}).parse();