@@ -44,44 +44,44 @@ let print_version_string () =
44
44
45
45
let bsb_main_flags : (string * Arg.spec * string) list =
46
46
[
47
- " -v" , Arg. Unit print_version_string,
47
+ " -v" , Unit print_version_string,
48
48
" Print version and exit" ;
49
- " -version" , Arg. Unit print_version_string,
49
+ " -version" , Unit print_version_string,
50
50
" Print version and exit" ;
51
- " -verbose" , Arg. Unit Bsb_log. verbose,
51
+ " -verbose" , Unit Bsb_log. verbose,
52
52
" Set the output(from bsb) to be verbose" ;
53
- " -w" , Arg. Set watch_mode,
53
+ " -w" , Set watch_mode,
54
54
" Watch mode" ;
55
- " -clean-world" , Arg. Unit (fun _ ->
55
+ " -clean-world" , Unit (fun _ ->
56
56
Bsb_clean. clean_bs_deps Bsb_global_paths. cwd),
57
57
" Clean all bs dependencies" ;
58
- " -clean" , Arg. Unit (fun _ ->
58
+ " -clean" , Unit (fun _ ->
59
59
Bsb_clean. clean_self Bsb_global_paths. cwd),
60
60
" Clean only current project" ;
61
- " -make-world" , Arg. Unit set_make_world,
61
+ " -make-world" , Unit set_make_world,
62
62
" Build all dependencies and itself " ;
63
- " -install" , Arg. Set do_install,
63
+ " -install" , Set do_install,
64
64
" 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),
66
66
" 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,
68
68
" The theme for project initialization, default is basic(https://github.com/bucklescript/bucklescript/tree/master/jscomp/bsb/templates)" ;
69
69
70
- regen, Arg. Set force_regenerate,
70
+ regen, Set force_regenerate,
71
71
" (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,
73
73
" List all available themes" ;
74
74
" -where" ,
75
- Arg. Unit (fun _ ->
75
+ Unit (fun _ ->
76
76
print_endline (Filename. dirname Sys. executable_name)),
77
77
" Show where bsb.exe is located" ;
78
78
(* * Below flags are only for bsb script, it is not available for bsb.exe
79
79
we make it at this time to make `bsb -help` easier
80
80
*)
81
- " -ws" , Arg. Bool ignore,
81
+ " -ws" , Bool ignore,
82
82
" [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." ;
83
83
#if BS_NATIVE then
84
- " -backend" , Arg. String (fun s ->
84
+ " -backend" , String (fun s ->
85
85
match s with
86
86
| "js" -> Bsb_global_backend. set_backend Bsb_config_types. Js
87
87
| "native" -> Bsb_global_backend. set_backend Bsb_config_types. Native
0 commit comments