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
123456789101112131415161718192021var program = require('../') , should = require('should');
program .command('info [thing]') .alias('i') .action(function () { });
program .command('save [file]') .alias('s') .action(function() { });
program.parse(['node', 'test']);
program.commandHelp().should.containEql('info|i');program.commandHelp().should.containEql('save|s');program.commandHelp().should.not.containEql('test|');