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
Merge pull request #416 from zhiyelee/zhiyelee/fixHelpUndefinedZhiye Libefore adoption1559b3e
lines 1–5why, one step back1var program = require('../')2 , sinon = require('sinon').sandbox.create()3 , should = require('should');45remove trailing spaces in command helpDan Allenbefore adoptionff712f1
line 6why, one step back6program.command('bare');Merge pull request #416 from zhiyelee/zhiyelee/fixHelpUndefinedZhiye Libefore adoption1559b3e
line 7why, one step back7Merge pull request #711 from cravler/args_descriptionTomoaki Abebefore adoptionc92ca1d
line 8why, one step back8program.commandHelp().should.equal(' Commands:\n\n bare\n');Merge pull request #416 from zhiyelee/zhiyelee/fixHelpUndefinedZhiye Libefore adoption1559b3e
line 9why, one step back9remove trailing spaces in command helpDan Allenbefore adoptionff712f1
lines 10–11why, one step back10program.command('mycommand [options]');11Merge pull request #711 from cravler/args_descriptionTomoaki Abebefore adoptionc92ca1d
line 12why, one step back12program.commandHelp().should.equal(' Commands:\n\n bare\n mycommand [options]\n');