@@ -152,7 +152,7 @@ let eval (s : string) ~suffix =
152152let define_variable s =
153153 match Ext_string. split ~keep_empty: true s '=' with
154154 | [key; v] ->
155- if not @@ Lexer. define_key_value key v then
155+ if not ( Lexer. define_key_value key v) then
156156 raise (Arg. Bad (" illegal definition: " ^ s))
157157 | _ -> raise (Arg. Bad (" illegal definition: " ^ s))
158158
@@ -310,22 +310,17 @@ let buckle_script_flags : (string * Arg.spec * string) list =
310310 Js_packages_state. update_npm_package_path,
311311 " set npm-output-path: [opt_module]:path, for example: 'lib/cjs', 'amdjs:lib/amdjs', 'es6:lib/es6' " )
312312 ::
313- (" -bs-no-warn-unimplemented-external" ,
314- Arg. Unit (fun _ -> () ),
315- " Deprecated: use warning 106"
316- )
317- ::
318- (" -bs-no-builtin-ppx-ml" ,
319- Arg. Set Js_config. no_builtin_ppx_ml,
320- " disable built-in ppx for ml files (internal use)" )
321- ::
322- (" -bs-no-builtin-ppx-mli" ,
323- Arg. Set Js_config. no_builtin_ppx_mli,
324- " disable built-in ppx for mli files (internal use)" )
313+ (" -bs-no-builtin-ppx" ,
314+ Arg. Set Js_config. no_builtin_ppx,
315+ " disable built-in ppx (internal use)" )
325316 ::
326317 (" -bs-cross-module-opt" ,
327318 Arg. Set Js_config. cross_module_inline,
328319 " enable cross module inlining(experimental), default(false)" )
320+ ::
321+ (" -bs-no-cross-module-opt" ,
322+ Arg. Clear Js_config. cross_module_inline,
323+ " enable cross module inlining(experimental), default(false)" )
329324 ::
330325 (" -bs-diagnose" ,
331326 Arg. Set Js_config. diagnose,
@@ -344,10 +339,15 @@ let buckle_script_flags : (string * Arg.spec * string) list =
344339 Arg. Set Clflags. dump_location,
345340 " dont display location with -dtypedtree, -dparsetree"
346341 )
347- :: Ocaml_options. mk_impl (* [-impl] *)
348- (fun file -> Js_config. js_stdout := false ; impl file )
349- :: Ocaml_options. mk_intf (* [-intf] *)
350- (fun file -> Js_config. js_stdout := false ; intf file)
342+ ::
343+ (" -impl" , Arg. String
344+ (fun file -> Js_config. js_stdout := false ; impl file ),
345+ " <file> Compile <file> as a .ml file"
346+ )
347+ ::
348+ (" -intf" , Arg. String
349+ (fun file -> Js_config. js_stdout := false ; intf file),
350+ " <file> Compile <file> as a .mli file" )
351351 (* :: Ocaml_options.mk__ anonymous *)
352352 :: Ocaml_options. ocaml_options
353353
0 commit comments