test.command.alias.help.js
This file
Path
test/test.command.alias.help.js
20 lines · 410 bytes · JavaScript
Last changed by
Merge branch 'pr/545'zhiyeleebefore adoptionc6236d9
History of this fileTake it
Merge branch 'pr/545'zhiyeleebefore adoptionc6236d9
lines 1–20why, one step back1var program = require('../')2 , should = require('should');34program5 .command('info [thing]')6 .alias('i')7 .action(function () {8 });910program11 .command('save [file]')12 .alias('s')13 .action(function() {14 });1516program.parse(['node', 'test']);1718program.commandHelp().should.containEql('info|i');19program.commandHelp().should.containEql('save|s');20program.commandHelp().should.not.containEql('test|');