test.command.help.js
This file
Path
test/test.command.help.js
12 lines · 331 bytes · JavaScript
Last changed by
Merge pull request #711 from cravler/args_descriptionTomoaki Abebefore adoptionc92ca1d
History of this fileTake it
123456789101112var program = require('../') , sinon = require('sinon').sandbox.create() , should = require('should');
program.command('bare');
program.commandHelp().should.equal(' Commands:\n\n bare\n');
program.command('mycommand [options]');
program.commandHelp().should.equal(' Commands:\n\n bare\n mycommand [options]\n');