« first day (863 days earlier)      last day (3254 days later) » 

01:36
1 message moved from HTML / CSS / WebDesign
 
10 hours later…
11:06
Can someone debug this for me?

output.jsbin.com/piboludore

My toggle isn't working if I click any of the buttons.
@AwalGarg @MadaraUchiha Help
2 messages moved from JavaScript
 
11 hours later…
22:44
const Interface = require('./cli');

// Create CLInterface
var cli = new Interface({ version: '1.0.0', outfn: console.log });

cli
	.command('add', {
		params: '[Number] [Number]',
		description: 'Adds two numbers'
	})
	.option('t', 'third', '[number3]', 'Adds a third number')
	.option({long: 'morefive', desc: 'Adds more 5'})
	.callBack(function(opts, n1, n2) {
		var n3  = opts.get('third', Number),
			n5  = opts.has('morefive'),
			sum = Number(n1) + Number(n2);

		if (n3) sum += n3;
		if (n5) sum += 5;
1 message moved from JavaScript
var add = cli.command('add');


add.option('t', 'third', '[number]', 'Adds a third number');
// is the same as
add.option({
	short: 't',
	long: 'third',
	param: '[number]',
	desc: 'Adds a third number'
})
1 message moved from JavaScript

« first day (863 days earlier)      last day (3254 days later) »