var app = require('app');
-var argv = require('optimist').argv;
var dialog = require('dialog');
var path = require('path');
app.quit();
});
+process.argv.splice(1, 0, 'dummyScript');
+var argv = require('optimist').argv;
+
// Start the specified app if there is one specified in command line, otherwise
// start the default app.
if (argv._.length > 0) {
throw e;
}
}
+} else if (argv.version) {
+ console.log(process.versions['atom-shell']);
+ process.exit(0);
} else {
require('./default_app.js');
}