UNPKG

evdev-trigger

Version:

A command-line tool to run shell commands when evdev input focus changes.

18 lines (17 loc) 756 B
// Generated by LiveScript 1.5.0 (function(){ var C, P, J, defaultConfigHome, defaultConfigPath; C = require('commander'); P = require('path'); J = require('./package.json'); defaultConfigHome = process.env.XDG_CONFIG_HOME || P.join(process.env.HOME, '.config'); defaultConfigPath = defaultConfigHome + "/evdev-trigger.conf"; C.version(J.version); C.usage('[Options]'); C.option('-c, --config-path [path]', "path to configuration file (default:" + defaultConfigPath + ")", defaultConfigPath); C.option('-d, --dry-run', 'bypass command execute'); C.option('-v, --verbose', 'emit detailed trace for debugging'); C.parse(process.argv); C.isDefaultConfigPath = C.configPath === defaultConfigPath; module.exports = C; }).call(this);