Skip to content
Myr

test.command.action.js

This file

Path

test/test.command.action.js

14 lines · 309 bytes · JavaScript

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 6135fbc point at it.

Merge pull request #342 from demohi/patch-1Zhiye Libefore adoption6135fbc

lines 1–14why, one step back
1var program = require('../')
2 , should = require('should');34var val = false;5program6 .command('info [options]')7 .option('-C, --no-color', 'turn off color output')8 .action(function () {9 val = this.color;10 });1112program.parse(['node', 'test', 'info']);1314program.commands[0].color.should.equal(val);