Skip to content

Commit e23a37f

Browse files
committed
tweak
1 parent 9fcb1bd commit e23a37f

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

jscomp/main/bsb_main.ml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,44 +44,44 @@ let print_version_string () =
4444

4545
let bsb_main_flags : (string * Arg.spec * string) list=
4646
[
47-
"-v", Arg.Unit print_version_string,
47+
"-v", Unit print_version_string,
4848
" Print version and exit";
49-
"-version", Arg.Unit print_version_string,
49+
"-version", Unit print_version_string,
5050
" Print version and exit";
51-
"-verbose", Arg.Unit Bsb_log.verbose,
51+
"-verbose", Unit Bsb_log.verbose,
5252
" Set the output(from bsb) to be verbose";
53-
"-w", Arg.Set watch_mode,
53+
"-w", Set watch_mode,
5454
" Watch mode" ;
55-
"-clean-world", Arg.Unit (fun _ ->
55+
"-clean-world", Unit (fun _ ->
5656
Bsb_clean.clean_bs_deps Bsb_global_paths.cwd),
5757
" Clean all bs dependencies";
58-
"-clean", Arg.Unit (fun _ ->
58+
"-clean", Unit (fun _ ->
5959
Bsb_clean.clean_self Bsb_global_paths.cwd),
6060
" Clean only current project";
61-
"-make-world", Arg.Unit set_make_world,
61+
"-make-world", Unit set_make_world,
6262
" Build all dependencies and itself ";
63-
"-install", Arg.Set do_install,
63+
"-install", Set do_install,
6464
" Install public interface files into lib/ocaml";
65-
"-init", Arg.String (fun path -> generate_theme_with_path := Some path),
65+
"-init", String (fun path -> generate_theme_with_path := Some path),
6666
" Init sample project to get started. Note (`bsb -init sample` will create a sample project while `bsb -init .` will reuse current directory)";
67-
"-theme", Arg.String set_theme,
67+
"-theme", String set_theme,
6868
" The theme for project initialization, default is basic(https://github.com/bucklescript/bucklescript/tree/master/jscomp/bsb/templates)";
6969

70-
regen, Arg.Set force_regenerate,
70+
regen, Set force_regenerate,
7171
" (internal) Always regenerate build.ninja no matter bsconfig.json is changed or not (for debugging purpose)";
72-
"-themes", Arg.Unit Bsb_theme_init.list_themes,
72+
"-themes", Unit Bsb_theme_init.list_themes,
7373
" List all available themes";
7474
"-where",
75-
Arg.Unit (fun _ ->
75+
Unit (fun _ ->
7676
print_endline (Filename.dirname Sys.executable_name)),
7777
" Show where bsb.exe is located";
7878
(** Below flags are only for bsb script, it is not available for bsb.exe
7979
we make it at this time to make `bsb -help` easier
8080
*)
81-
"-ws", Arg.Bool ignore,
81+
"-ws", Bool ignore,
8282
" [host:]port specify a websocket number (and optionally, a host). When a build finishes, we send a message to that port. For tools that listen on build completion." ;
8383
#if BS_NATIVE then
84-
"-backend", Arg.String (fun s ->
84+
"-backend", String (fun s ->
8585
match s with
8686
| "js" -> Bsb_global_backend.set_backend Bsb_config_types.Js
8787
| "native" -> Bsb_global_backend.set_backend Bsb_config_types.Native

0 commit comments

Comments
 (0)