-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathusage.js
80 lines (78 loc) · 1.96 KB
/
usage.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
72
73
74
75
76
77
78
79
80
'use strict';
module.exports = {
options: {
title: 'Electron Wrapper',
description: 'Wrap any website (url) in a native Electron application with one command.',
synopsis: [
'Only url and platform are required. See below for additional options.',
'',
'Usage: electron-wrapper [bold]{--url} [underline]{url} [bold]{--platform} [underline]{name}',
'',
'Example: electron-wrapper -u http://google.com -p win32'
]
},
args: [
{
name: 'help',
alias: 'h',
type: Boolean,
description: 'Display this guide.'
},
{
name: 'url',
alias: 'u',
type: String,
description: 'The website to wrap.'
},
{
name: 'name',
alias: 'n',
type: String,
description: 'The name of the executable application.'
},
{
name: 'icon',
alias: 'i',
type: String,
description: 'The name of the icon file to use.'
},
{
name: 'openLocally',
type: Boolean,
description: 'Whether to open external links within Electron. If false, external links will open in your default browser.',
defaultValue: false
},
{
name: 'out',
alias: 'o',
type: String,
description: 'The output directory of the app.\nDefault: current directory',
defaultValue: '.'
},
{
name: 'platform',
alias: 'p',
type: String,
description: 'The platform to target (linux, win32, darwin, all)'
},
{
name: 'arch',
alias: 'a',
type: String,
description: 'The system architecture to target. (ia32, x64, all)\nDefault: x64',
defaultValue: 'x64'
},
{
name: 'version',
alias: 'v',
type: String,
description: 'The Electron version to build with.\nDefault: 0.37.6',
defaultValue: '0.37.6'
},
{
name: 'overwrite',
type: Boolean,
description: 'Overwrite existing application(s), if they are already built.'
}
]
};