1 var test = require('tape');
2 var parse = require('../');
4 test('long opts', function (t) {
7 { bool : true, _ : [] },
11 parse([ '--pow', 'xixxle' ]),
12 { pow : 'xixxle', _ : [] },
16 parse([ '--pow=xixxle' ]),
17 { pow : 'xixxle', _ : [] },
21 parse([ '--host', 'localhost', '--port', '555' ]),
22 { host : 'localhost', port : 555, _ : [] },
26 parse([ '--host=localhost', '--port=555' ]),
27 { host : 'localhost', port : 555, _ : [] },