-
Notifications
You must be signed in to change notification settings - Fork 72
/
options.js
71 lines (70 loc) · 1.78 KB
/
options.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
const path = require('path');
const os = require('os');
module.exports = [
{
name: 'port',
alias: 'p',
type: Number,
defaultValue: 80,
description: 'Port number for http server'
},
{
name: 'host',
alias: 'h',
type: String,
defaultValue: '::',
description: 'Host (IP) for http server'
},
{
name: 'updateInterval',
type: Number,
defaultValue: 60*1000,
description: 'Interval between LND describegraph fetches (in milliseconds)'
},
{
name: 'logDir',
type: String,
defaultValue: 'logs',
description: 'Location to save log files'
},
{
name: 'graphLogInterval',
type: Number,
defaultValue: 60*60*1000,
description: 'Interval between network graph logging to file (in milliseconds)'
},
{
name: 'dummyDataPath',
type: String,
description: 'Provide a file with dummy data to use instead of LND API'
},
{
name: 'daemon',
type: String,
defaultValue: 'lnd',
description: 'Daemon used: lnd, clightning.'
},
{
name: 'lndDir',
type: String,
defaultValue: path.join(os.homedir(), '.lnd'),
description: 'LND daemon config directory. Must contain admin.macaroon and tls.cert'
},
{
name: 'lndHost',
type: String,
defaultValue: 'localhost:10009',
description: 'LND daemon hostname'
},
{
name: 'clightningDir',
type: String,
defaultValue: path.join(os.homedir(), '.lightning'),
description: 'clightning daemon config directory'
},
{
name: 'help',
type: Boolean,
description: 'Prints usage information'
}
];