How to use the alertfile function from commander

Find comprehensive JavaScript commander.alertfile code examples handpicked from public code repositorys.

49
50
51
52
53
54
55
56
57

program = ummoncli.parse(program, process.argv);

if (program.alertfile) {
  var fullPath = (program.alertfile[0]=='/'
    ? program.alertfile
    : process.cwd() + '/' + program.alertfile);
  nagios_alerts = _.extend(nagios_alerts, require(fullPath));
}
fork icon2
star icon7
watch icon8

+ 11 other calls in file

Other functions in commander

Sorted by popularity

function icon

commander.Option is the most popular function in commander (1786 examples)