File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ let build_subcommand ~start argv argv_len =
136
136
Always regenerate build.ninja no matter bsconfig.json is changed or \
137
137
not" );
138
138
(" -no-deps" , unit_set_spec no_deps_mode, " *internal* Needed for watcher to build without dependencies on file change" );
139
- (" -warn-error" , string_call (fun s -> warning_as_error := Some s), " Enable warnings as error" )
139
+ (" -warn-error" , string_call (fun s -> warning_as_error := Some s), " Warning numbers and whether to turn it into error or not " )
140
140
|]
141
141
failed_annon;
142
142
@@ -148,7 +148,7 @@ let build_subcommand ~start argv argv_len =
148
148
| _ ->
149
149
let warn_as_error = match ! warning_as_error with
150
150
| Some s ->
151
- Warnings. parse_options true s;
151
+ let () = try Warnings. parse_options true s with Arg. Bad msg -> Bsb_arg. bad_arg (msg ^ " \n " ) in
152
152
Some s
153
153
| None -> None in
154
154
let config_opt =
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const buildHelp =
36
36
" -ws [host]:port set up host & port for WebSocket build notifications\n" +
37
37
" -verbose Set the output to be verbose\n" +
38
38
" -with-deps *deprecated* This is the default behavior now. This option will be removed in a future release\n" +
39
- " -warn-error Enable warnings as error\n" ;
39
+ " -warn-error Warning numbers and whether to turn it into error or not \n" ;
40
40
41
41
const cleanHelp =
42
42
"Usage: rescript clean <options>\n" +
You can’t perform that action at this time.
0 commit comments