forked from gkz/LiveScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.js
More file actions
118 lines (118 loc) · 3.03 KB
/
options.js
File metadata and controls
118 lines (118 loc) · 3.03 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// Generated by LiveScript 1.5.0
var optionator;
optionator = require('optionator');
module.exports = optionator({
prepend: 'Usage: lsc [option]... [file]...\n\nUse \'lsc\' with no options to start REPL.',
append: 'Version {{version}}\n<http://livescript.net/>',
helpStyle: {
maxPadFactor: 1.9
},
positionalAnywhere: false,
options: [
{
heading: 'Misc'
}, {
option: 'version',
alias: 'v',
type: 'Boolean',
description: 'display version'
}, {
option: 'help',
alias: 'h',
type: 'Boolean',
description: 'display this help message'
}, {
option: 'compile',
alias: 'c',
type: 'Boolean',
description: 'compile to JavaScript and save as .js files'
}, {
option: 'eval',
alias: 'e',
type: 'code::String',
description: 'pass as string from the command line as input'
}, {
option: 'prelude',
alias: 'd',
type: 'Boolean',
description: 'automatically import prelude.ls in REPL'
}, {
option: 'require',
alias: 'r',
type: 'paths::[String]',
description: 'require libraries before executing'
}, {
option: 'stdin',
alias: 's',
type: 'Boolean',
description: 'read stdin'
}, {
option: 'json',
alias: 'j',
type: 'Boolean',
description: 'print/compile as JSON'
}, {
option: 'nodejs',
alias: 'n',
type: 'Boolean',
description: 'pass options after this through to the \'node\' binary',
restPositional: true
}, {
option: 'watch',
alias: 'w',
type: 'Boolean',
description: 'watch scripts for changes, and repeat'
}, {
option: 'const',
alias: 'k',
type: 'Boolean',
description: 'compile all variables as constants'
}, {
heading: 'Output control'
}, {
option: 'output',
alias: 'o',
type: 'path::String',
description: 'compile into the specified directory'
}, {
option: 'print',
alias: 'p',
type: 'Boolean',
description: 'print the result to stdout'
}, {
option: 'bare',
alias: 'b',
type: 'Boolean',
description: 'compile without the top-level function wrapper'
}, {
option: 'header',
type: 'Boolean',
description: 'do not add "Generated by" header',
'default': 'true'
}, {
option: 'lex',
alias: 'l',
type: 'Boolean',
description: 'print the tokens the lexer produces'
}, {
option: 'tokens',
alias: 't',
type: 'Boolean',
description: 'print the tokens the rewriter produces'
}, {
option: 'ast',
alias: 'a',
type: 'Boolean',
description: 'print the syntax tree the parser produces'
}, {
option: 'debug',
type: 'Boolean',
description: 'print debug output when compiling'
}, {
option: 'map',
alias: 'm',
type: 'String',
description: "generate source maps - either: 'none', 'linked', 'linked-src', 'embedded', or 'debug'"
}
]
});