@@ -248,7 +248,7 @@ let [@inline] string_list_add s : Bsc_args.spec =
248248let buckle_script_flags : (string * Bsc_args.spec * string) array =
249249 [|
250250 " -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" ;
252252
253253 " -w" , string_call (Warnings. parse_options false ),
254254 " <list> Enable or disable warnings according to <list>:\n \
@@ -262,16 +262,16 @@ let buckle_script_flags : (string * Bsc_args.spec * string) array =
262262
263263
264264 " -o" , string_optional_set Clflags. output_name,
265- " <file> set output file name to <file>" ;
265+ " *internal* <file> set output file name to <file>" ;
266266
267267 " -bs-read-cmi" , unit_call (fun _ -> Clflags. assume_no_mli := Mli_exists ),
268268 " *internal* Assume mli always exist " ;
269269
270270 " -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>" ;
272272
273273 " -open" , string_list_add Clflags. open_modules,
274- " <module> Opens the module <module> before typing" ;
274+ " *internal* <module> Opens the module <module> before typing" ;
275275
276276 " -bs-jsx" , string_call (fun i ->
277277 (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 =
285285 " *internal* Generate binary .mli_ast and ml_ast and stop" ;
286286
287287 " -bs-syntax-only" , set Js_config. syntax_only,
288- " Only check syntax" ;
288+ " *internal* Only check syntax" ;
289289
290290 " -bs-g" , unit_call (fun _ -> Js_config. debug := true ; Lexer. replace_directive_bool " DEBUG" true ),
291291 " Debug mode" ;
292292
293293 " -bs-v" , string_call ignore,
294294 " *internal* version check to force a rebuild" ;
295295 " -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" ;
297297
298298 " -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" ;
300300
301301 " -as-ppx" , set Js_config. as_ppx,
302302 " *internal*As ppx for editor integration" ;
@@ -312,15 +312,15 @@ let buckle_script_flags : (string * Bsc_args.spec * string) array =
312312
313313
314314 " -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 " ;
316316
317317 " -unboxed-types" , set Clflags. unboxed_types,
318- " Unannotated unboxable types will be unboxed" ;
318+ " *internal* Unannotated unboxable types will be unboxed" ;
319319
320320 " -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" ;
322322 " -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" ;
324324
325325 " -bs-D" , string_call define_variable,
326326 " Define conditional variable e.g, -D DEBUG=true" ;
@@ -335,7 +335,7 @@ let buckle_script_flags : (string * Bsc_args.spec * string) array =
335335 " *internal* Built in check corrupted data" ;
336336
337337 " -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 \
339339 The following settings are supported:\n \
340340 auto use heuristics to enable colors only if supported\n \
341341 always enable colors\n \
@@ -346,7 +346,7 @@ let buckle_script_flags : (string * Bsc_args.spec * string) array =
346346 not empty or \" dumb\" , and that isatty(stderr) holds." ;
347347
348348 " -bs-list-conditionals" , unit_call (fun () -> Lexer. list_variables Format. err_formatter),
349- " List existing conditional variables" ;
349+ " *internal* List existing conditional variables" ;
350350
351351 " -bs-eval" , string_call (fun s -> eval s ~suffix: Literals. suffix_ml),
352352 " *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 =
409409 " *internal* print source" ;
410410
411411 " -format" , string_call format_file,
412- " Format as Res syntax" ;
412+ " *internal* Format as Res syntax" ;
413413
414414 " -where" , unit_call print_standard_library,
415- " Print location of standard library and exit" ;
415+ " *internal* Print location of standard library and exit" ;
416416
417417 " -verbose" , set Clflags. verbose,
418- " Print calls to external commands" ;
418+ " *internal* Print calls to external commands" ;
419419
420420 " -keep-locs" , set Clflags. keep_locs,
421- " Keep locations in .cmi files" ;
421+ " *internal* Keep locations in .cmi files" ;
422422
423423 " -no-keep-locs" , clear Clflags. keep_locs,
424- " Do not keep locations in .cmi files" ;
424+ " *internal* Do not keep locations in .cmi files" ;
425425
426426 " -nopervasives" , set Clflags. nopervasives,
427427 " *internal*" ;
428428
429429 " -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" ;
431431
432432 " -version" , unit_call print_version_string,
433433 " Print version and exit" ;
434434
435435 " -pp" , string_optional_set Clflags. preprocessor,
436- " <command> Pipe sources through preprocessor <command>" ;
436+ " *internal* <command> Pipe sources through preprocessor <command>" ;
437437
438438 " -absname" , set Location. absname,
439- " Show absolute filenames in error messages" ;
439+ " *internal* Show absolute filenames in error messages" ;
440440 (* Not used, the build system did the expansion *)
441441
442442 " -bs-no-bin-annot" , clear Clflags. binary_annotations,
443- " Disable binary annotations (by default on)" ;
443+ " *internal* Disable binary annotations (by default on)" ;
444444
445445 " -i" , set Clflags. print_types,
446- " Print inferred interface" ;
446+ " *internal* Print inferred interface" ;
447447
448448 " -nolabels" , set Clflags. classic,
449449 " *internal* Ignore non-optional labels in types" ;
@@ -452,7 +452,7 @@ let buckle_script_flags : (string * Bsc_args.spec * string) array =
452452 " *internal* Shorten paths in types" ;
453453
454454 " -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" ;
456456
457457 " -warn-help" , unit_call Warnings. help_warnings,
458458 " Show description of warning numbers" ;
0 commit comments