@@ -248,7 +248,7 @@ let [@inline] string_list_add s : Bsc_args.spec =
248
248
let buckle_script_flags : (string * Bsc_args.spec * string) array =
249
249
[|
250
250
" -I" , string_list_add Clflags. include_dirs ,
251
- " <dir> Add <dir> to the list of include directories" ;
251
+ " *internal* <dir> Add <dir> to the list of include directories" ;
252
252
253
253
" -w" , string_call (Warnings. parse_options false ),
254
254
" <list> Enable or disable warnings according to <list>:\n \
@@ -262,16 +262,16 @@ let buckle_script_flags : (string * Bsc_args.spec * string) array =
262
262
263
263
264
264
" -o" , string_optional_set Clflags. output_name,
265
- " <file> set output file name to <file>" ;
265
+ " *internal* <file> set output file name to <file>" ;
266
266
267
267
" -bs-read-cmi" , unit_call (fun _ -> Clflags. assume_no_mli := Mli_exists ),
268
268
" *internal* Assume mli always exist " ;
269
269
270
270
" -ppx" , string_list_add Clflags. all_ppx,
271
- " <command> Pipe abstract syntax trees through preprocessor <command>" ;
271
+ " *internal* <command> Pipe abstract syntax trees through preprocessor <command>" ;
272
272
273
273
" -open" , string_list_add Clflags. open_modules,
274
- " <module> Opens the module <module> before typing" ;
274
+ " *internal* <module> Opens the module <module> before typing" ;
275
275
276
276
" -bs-jsx" , string_call (fun i ->
277
277
(if i <> " 3" then Bsc_args. bad_arg (" Not supported jsx version : " ^ i));
@@ -285,18 +285,18 @@ let buckle_script_flags : (string * Bsc_args.spec * string) array =
285
285
" *internal* Generate binary .mli_ast and ml_ast and stop" ;
286
286
287
287
" -bs-syntax-only" , set Js_config. syntax_only,
288
- " Only check syntax" ;
288
+ " *internal* Only check syntax" ;
289
289
290
290
" -bs-g" , unit_call (fun _ -> Js_config. debug := true ; Lexer. replace_directive_bool " DEBUG" true ),
291
291
" Debug mode" ;
292
292
293
293
" -bs-v" , string_call ignore,
294
294
" *internal* version check to force a rebuild" ;
295
295
" -bs-package-name" , string_call Js_packages_state. set_package_name,
296
- " Set package name, useful when you want to produce npm packages" ;
296
+ " *internal* Set package name, useful when you want to produce npm packages" ;
297
297
298
298
" -bs-ns" , string_call Js_packages_state. set_package_map,
299
- " Set package map, not only set package name but also use it as a namespace" ;
299
+ " *internal* Set package map, not only set package name but also use it as a namespace" ;
300
300
301
301
" -as-ppx" , set Js_config. as_ppx,
302
302
" *internal*As ppx for editor integration" ;
@@ -312,15 +312,15 @@ let buckle_script_flags : (string * Bsc_args.spec * string) array =
312
312
313
313
314
314
" -bs-super-errors" , unit_lazy Super_main. setup,
315
- " Better error message combined with other tools " ;
315
+ " *internal* Better error message combined with other tools " ;
316
316
317
317
" -unboxed-types" , set Clflags. unboxed_types,
318
- " Unannotated unboxable types will be unboxed" ;
318
+ " *internal* Unannotated unboxable types will be unboxed" ;
319
319
320
320
" -bs-re-out" , unit_call (fun _ -> Config. syntax_kind := `reason ),
321
- " Print compiler output in Reason syntax" ;
321
+ " *internal* Print compiler output in Reason syntax" ;
322
322
" -bs-ml-out" , unit_call (fun _ -> Config. syntax_kind := `ml ),
323
- " Print compiler output in ML syntax" ;
323
+ " *internal* Print compiler output in ML syntax" ;
324
324
325
325
" -bs-D" , string_call define_variable,
326
326
" Define conditional variable e.g, -D DEBUG=true" ;
@@ -335,7 +335,7 @@ let buckle_script_flags : (string * Bsc_args.spec * string) array =
335
335
" *internal* Built in check corrupted data" ;
336
336
337
337
" -color" , string_call set_color_option,
338
- " Enable or disable colors in compiler messages\n \
338
+ " *internal* Enable or disable colors in compiler messages\n \
339
339
The following settings are supported:\n \
340
340
auto use heuristics to enable colors only if supported\n \
341
341
always enable colors\n \
@@ -346,7 +346,7 @@ let buckle_script_flags : (string * Bsc_args.spec * string) array =
346
346
not empty or \" dumb\" , and that isatty(stderr) holds." ;
347
347
348
348
" -bs-list-conditionals" , unit_call (fun () -> Lexer. list_variables Format. err_formatter),
349
- " List existing conditional variables" ;
349
+ " *internal* List existing conditional variables" ;
350
350
351
351
" -bs-eval" , string_call (fun s -> eval s ~suffix: Literals. suffix_ml),
352
352
" *internal* (experimental) set the string to be evaluated in OCaml syntax" ;
@@ -409,41 +409,41 @@ let buckle_script_flags : (string * Bsc_args.spec * string) array =
409
409
" *internal* print source" ;
410
410
411
411
" -format" , string_call format_file,
412
- " Format as Res syntax" ;
412
+ " *internal* Format as Res syntax" ;
413
413
414
414
" -where" , unit_call print_standard_library,
415
- " Print location of standard library and exit" ;
415
+ " *internal* Print location of standard library and exit" ;
416
416
417
417
" -verbose" , set Clflags. verbose,
418
- " Print calls to external commands" ;
418
+ " *internal* Print calls to external commands" ;
419
419
420
420
" -keep-locs" , set Clflags. keep_locs,
421
- " Keep locations in .cmi files" ;
421
+ " *internal* Keep locations in .cmi files" ;
422
422
423
423
" -no-keep-locs" , clear Clflags. keep_locs,
424
- " Do not keep locations in .cmi files" ;
424
+ " *internal* Do not keep locations in .cmi files" ;
425
425
426
426
" -nopervasives" , set Clflags. nopervasives,
427
427
" *internal*" ;
428
428
429
429
" -v" , unit_call print_version_string,
430
- " Print compiler version and location of standard library and exit" ;
430
+ " Print compiler version and location of standard library and exit" ;
431
431
432
432
" -version" , unit_call print_version_string,
433
433
" Print version and exit" ;
434
434
435
435
" -pp" , string_optional_set Clflags. preprocessor,
436
- " <command> Pipe sources through preprocessor <command>" ;
436
+ " *internal* <command> Pipe sources through preprocessor <command>" ;
437
437
438
438
" -absname" , set Location. absname,
439
- " Show absolute filenames in error messages" ;
439
+ " *internal* Show absolute filenames in error messages" ;
440
440
(* Not used, the build system did the expansion *)
441
441
442
442
" -bs-no-bin-annot" , clear Clflags. binary_annotations,
443
- " Disable binary annotations (by default on)" ;
443
+ " *internal* Disable binary annotations (by default on)" ;
444
444
445
445
" -i" , set Clflags. print_types,
446
- " Print inferred interface" ;
446
+ " *internal* Print inferred interface" ;
447
447
448
448
" -nolabels" , set Clflags. classic,
449
449
" *internal* Ignore non-optional labels in types" ;
@@ -452,7 +452,7 @@ let buckle_script_flags : (string * Bsc_args.spec * string) array =
452
452
" *internal* Shorten paths in types" ;
453
453
454
454
" -unsafe" , set Clflags. fast,
455
- " Do not compile bounds checking on array and string access" ;
455
+ " *internal* Do not compile bounds checking on array and string access" ;
456
456
457
457
" -warn-help" , unit_call Warnings. help_warnings,
458
458
" Show description of warning numbers" ;
0 commit comments