test.command.help.js
This file
Path
test/test.command.help.js
12 lines · 318 bytes · JavaScript
Last changed by
removed newline after options and commands headersJared Petersenbefore adoption2c20e91
History of this fileTake it
12345678910111213var program = require('../') , sinon = require('sinon').sandbox.create() , should = require('should');
program.command('bare');
program.commandHelp().should.equal('Commands:\n bare\n');
program.command('mycommand [options]');
program.commandHelp().should.equal('Commands:\n bare\n mycommand [options]\n');