UNPKG

949 BJavaScriptView Raw
1#!/usr/bin/env node
2
3var cli = require('../');
4
5//You can (optionally) boost the width of output with:
6//cli.width = 120;
7
8//You can also adjust the width of the options/command definitions
9//cli.option_width = 25;
10
11var long_desc = 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s '
12 + 'standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make'
13 + ' a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, '
14 + 'remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing '
15 + 'Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions'
16 + ' of Lorem Ipsum.';
17
18cli.parse({
19 foo: ['f', long_desc]
20});