Currently, commander does not provide a slick venue for providing completion options on option values (supported by completion). We should consider how to achieve this
program
.command('hello')
// Probably has issues with existing functionality
.option('--dir <cwd>', 'Directory', function () {});
// or
program
.command('hello')
.completableOption('--dir <cwd>', 'Directory', {
completion: function (info, cb) {
// ...
}
})
Currently,
commander
does not provide a slick venue for providing completion options on option values (supported bycompletion
). We should consider how to achieve thishttp://visionmedia.github.io/commander.js/#Command.prototype.option