WIP - add extractor, generate snippet_data

This commit is contained in:
Stefan Fejes
2019-08-20 15:52:05 +02:00
parent 88084d3d30
commit cc8f1d8a7a
37396 changed files with 4588842 additions and 133 deletions

27
node_modules/ltcdr/test/test.options.defaults.js generated vendored Normal file
View File

@ -0,0 +1,27 @@
/**
* Module dependencies.
*/
var program = require('../');
var program = new (require('../').Command)();
var test = require('tape');
program
.version('0.0.1')
.option('-a, --anchovies', 'Add anchovies?')
.option('-o, --onions', 'Add onions?', true)
.option('-v, --olives', 'Add olives? Sorry we only have black.', 'black')
.option('-s, --no-sauce', 'Uh… okay')
.option('-r, --crust <type>', 'What kind of crust would you like?', 'hand-tossed')
.option('-c, --cheese [type]', 'optionally specify the type of cheese', 'mozzarella');
program.parse(['node', 'test']);
test('options defaults', function (t) {
t.notOk(program.anchovies);
t.notOk(program.onions);
t.notOk(program.olives);
t.equals(program.sauce, true);
t.equals(program.crust, 'hand-tossed');
t.equals(program.cheese, 'mozzarella');
t.end();
});