How to use the help function from optimist

Find comprehensive JavaScript optimist.help code examples handpicked from public code repositorys.

48
49
50
51
52
53
54
55
56
57
    '  lmd server ' + 'development'.blue,
    '  lmd server ' + 'development'.blue + ' --a localhost --p 8080'.yellow,
    ''
];

var options = optimist.help().split('\n');
options.unshift(options[0].bold.white.underline);
options[1] = '';

help = help.concat(options);
fork icon27
star icon449
watch icon31