#!/usr/bin/env node
'use strict';
var meow = require('meow');
var humanNames = require('./');

var cli = meow({
    help: [
        'Examples',
        '  $ human-names',
        '  John',
        '',
        '  $ dog-names --all --type male',
        '  John',
        '  Bart',
        '  ...',
        '',
        'Options',
        '  --all   Get all names instead of a random name',
        '  --type  Type of name: female|male|all  Default: all'
    ].join('\n')
});

var type = cli.flags.type || 'all';
console.log(cli.flags.all ? humanNames[type].join('\n') : humanNames[type + 'Random']());

#!/usr/bin/env node
'use strict';
var meow = require('meow');
var humanNames = require('./');

var cli = meow({
    help: [
        'Examples',
        '  $ human-names',
        '  John',
        '',
        '  $ human-names --all --type male',
        '  John',
        '  Bart',
        '  ...',
        '',
        'Options',
        '  --all   Get all names instead of a random name',
        '  --type  Type of name: female|male|all  Default: all'
    ].join('\n')
});

var type = cli.flags.type || 'all';
console.log(cli.flags.all ? humanNames[type].join('\n') : humanNames[type + 'Random']());

fix cli file