mirror of
https://github.com/slap-editor/slap.git
synced 2024-11-10 03:36:52 +03:00
15 lines
319 B
JavaScript
15 lines
319 B
JavaScript
var argv = require('optimist')
|
|
.usage("Usage: $0 [options] <file>")
|
|
.argv;
|
|
var rc = require('rc');
|
|
var extend = require('xtend');
|
|
|
|
var packageJSON = require('../package');
|
|
var Program = require('./program');
|
|
|
|
var program = new Program(rc(packageJSON.name, argv));
|
|
|
|
if (argv._.length) {
|
|
program.open(argv._[0]);
|
|
}
|