1LABLGTK2(1) User Commands LABLGTK2(1)
2
3
4
6 lablgtk2 - manual page for lablgtk2 2.18.13
7
9 ocaml <options> <files>
10
12 Options are:
13
14 -absname
15 Show absolute filenames in error messages
16
17 -alert <list>
18 Enable or disable alerts according to <list>:
19
20 +<alertname>
21 enable alert <alertname>
22
23 -<alertname>
24 disable alert <alertname>
25
26 ++<alertname> treat <alertname> as fatal error
27
28 --<alertname> treat <alertname> as non-fatal
29
30 @<alertname>
31 enable <alertname> and treat it as fatal error
32
33 <alertname> can be 'all' to refer to all alert names
34
35 -I <dir>
36 Add <dir> to the list of include directories
37
38 -init <file>
39 Load <file> instead of default init file
40
41 -labels
42 Use commuting label mode
43
44 -alias-deps
45 Do record dependencies for module aliases
46
47 -no-alias-deps
48 Do not record dependencies for module aliases
49
50 -app-funct
51 Activate applicative functors
52
53 -no-app-funct
54 Deactivate applicative functors
55
56 -noassert
57 Do not compile assertion checks
58
59 -noinit
60 Do not load any init file
61
62 -nolabels
63 Ignore non-optional labels in types
64
65 -noprompt
66 Suppress all prompts
67
68 -nopromptcont
69 Suppress prompts for continuation lines of multi-line inputs
70
71 -nostdlib
72 Do not add default directory to the list of include directories
73
74 -nocwd Do not implicitly add the current directory to the load path
75
76 -nopervasives
77 (undocumented)
78
79 -open <module>
80 Opens the module <module> before typing
81
82 -ppx <command>
83 Pipe abstract syntax trees through preprocessor <command>
84
85 -principal
86 Check principality of type inference
87
88 -no-principal
89 Do not check principality of type inference (default)
90
91 -rectypes
92 Allow arbitrary recursive types
93
94 -no-rectypes
95 Do not allow arbitrary recursive types (default)
96
97 -safe-string
98 (default unconditionally since 5.0)
99
100 -short-paths
101 Shorten paths in types
102
103 -stdin Read script from standard input
104
105 -strict-sequence
106 Left-hand part of a sequence must have type unit
107
108 -no-strict-sequence
109 Left-hand part of a sequence need not have type unit (default)
110
111 -strict-formats
112 Reject invalid formats accepted by legacy implementations
113
114 (Warning: Invalid formats may behave differently from
115
116 previous OCaml versions, and will become always-rejected in fu‐
117 ture OCaml versions. You should always use this flag to detect
118 invalid formats so you can fix them.)
119
120 -no-strict-formats
121 Accept invalid formats accepted by legacy implementations (de‐
122 fault)
123
124 (Warning: Invalid formats may behave differently from
125
126 previous OCaml versions, and will become always-rejected in fu‐
127 ture OCaml versions. You should never use this flag and instead
128 fix invalid formats.)
129
130 -unboxed-types
131 unannotated unboxable types will be unboxed
132
133 -no-unboxed-types
134 unannotated unboxable types will not be unboxed (default)
135
136 -unsafe
137 Do not compile bounds checking on array and string access
138
139 -unsafe-string
140 (option not available)
141
142 -version
143 Print version and exit
144
145 --version
146 Print version and exit
147
148 -no-version
149 Do not print version at startup
150
151 -vnum Print version number and exit
152
153 -w <list>
154 Enable or disable warnings according to <list>:
155
156 +<spec>
157 enable warnings in <spec>
158
159 -<spec>
160 disable warnings in <spec>
161
162 @<spec>
163 enable warnings in <spec> and treat them as errors
164
165 <spec> can be:
166
167 <num> a single warning number
168
169 <num1>..<num2>
170 a range of consecutive warning numbers
171
172 <letter>
173 a predefined set
174
175 default setting is
176 "+a-4-7-9-27-29-30-32..42-44-45-48-50-60-66..70"
177
178 -warn-error <list>
179 Enable or disable error status for warnings according
180
181 to <list>.
182 See option -w for the syntax of <list>.
183
184 Default setting is "-a+31"
185
186 -warn-help
187 Show description of warning numbers
188
189 - <file>
190 Treat <file> as a file name (even if it starts with `-')
191
192 -color {auto|always|never}
193 Enable or disable colors in compiler messages
194
195 The following settings are supported:
196
197 auto use heuristics to enable colors only if supported
198
199 always enable colors
200
201 never disable colors
202
203 The default setting is 'auto', and the current heuristic checks
204 that the TERM environment variable exists and is not empty or
205 "dumb", and that isatty(stderr) holds.
206
207 If the option is not specified, these setting can alternatively
208 be set through the OCAML_COLOR environment variable. -er‐
209 ror-style {contextual|short} Control the way error messages and
210 warnings are printed
211
212 The following settings are supported:
213
214 short only print the error and its location
215
216 contextual
217 like "short", but also display the source code snippet corre‐
218 sponding to the location of the error
219
220 The default setting is 'contextual'.
221
222 If the option is not specified, these setting can alternatively
223 be set through the OCAML_ERROR_STYLE environment variable.
224 -dno-unique-ids (undocumented) -dunique-ids (undocumented)
225 -dno-locations (undocumented) -dlocations (undocumented)
226 -dsource (undocumented) -dparsetree (undocumented) -dtypedtree
227 (undocumented) -dshape (undocumented) -drawlambda (undocu‐
228 mented) -dlambda (undocumented) -dinstr (undocumented) -args
229 <file> Read additional newline-terminated command line arguments
230
231 from <file>
232
233 -args0 <file> Read additional null character terminated command line
234 arguments
235
236 from <file>
237
238 -e <script>
239 Evaluate given script
240
241 -help Display this list of options
242
243 --help Display this list of options
244
245
246
247lablgtk2 2.18.13 July 2023 LABLGTK2(1)