Handle argument parsing in C++

This commit is contained in:
Kevin Sawicki 2016-02-17 09:05:21 -08:00
commit b3ac48cf52
2 changed files with 13 additions and 18 deletions

View file

@ -1,17 +1 @@
'use strict';
const bindings = process.atomBinding('shell');
exports.beep = bindings.beep;
exports.moveItemToTrash = bindings.moveItemToTrash;
exports.openItem = bindings.openItem;
exports.showItemInFolder = bindings.showItemInFolder;
exports.openExternal = (url, options) => {
var activate = true;
if (options != null && options.activate != null) {
activate = !!options.activate;
}
return bindings._openExternal(url, activate);
};
module.exports = process.atomBinding('shell');