-
Notifications
You must be signed in to change notification settings - Fork 36
/
hide.js
44 lines (42 loc) · 959 Bytes
/
hide.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import commandLineUsage from 'command-line-usage'
const usage = commandLineUsage([
{
header: 'A typical app',
content: 'Generates something {italic very} important.'
},
{
header: 'Synopsis',
content: '$ example <options> {underline file} {underline ...}'
},
{
header: 'Options',
hide: [ 'src' ],
optionList: [
{
name: 'help',
description: 'Display this usage guide.',
alias: 'h',
type: Boolean
},
{
name: 'src',
description: 'THIS SHOULD BE HIDDEN.',
type: String,
multiple: true,
defaultOption: true,
typeLabel: '{underline file} ...'
},
{
name: 'timeout',
description: 'Timeout value in ms.',
alias: 't',
type: Number,
typeLabel: '{underline ms}'
}
]
},
{
content: 'Project home: {underline https://github.com/me/example}'
}
])
console.log(usage)