vincent_blog
Version:
the tools for vicent to write blog
14 lines (12 loc) • 399 B
JavaScript
const program=require('commander');
program.version('1.0.0');
program
.command('sayHello')
.description('say hello to the client')
.option('--clientName [clientName]',"输入客户姓名")
.action(function(options){
console.log('hello client, your name is :'+options.clientName);
});
program.parse(process.argv);
console.log('execute finish..');