@@ -16662,12 +16662,11 @@ let ninja_command_exit (type t) (ninja_args : string array) : t =
16662
16662
What will happen, some flags are really not good
16663
16663
ninja -C _build
16664
16664
*)
16665
- let clean_usage = "Usage : rescript.exe clean <options>\n\
16666
- It only clean the current project by default"
16667
- let build_usage = "Usage : rescript.exe build <options> -- <ninja_options>\n\
16668
- It only builds the current project by default\n\
16669
- For ninja options, try rescript.exe -- -h. \n\
16670
- Note they are supposed to be internals and not reliable."
16665
+ let clean_usage = "Usage: rescript.exe clean <options>\n\n\
16666
+ `rescript clean` only cleans the current project\n"
16667
+ let build_usage = "Usage: rescript.exe build <options> -- <ninja_options>\n\n\
16668
+ `rescript build` implicitly builds dependencies if they aren't built\n\n\
16669
+ `rescript.exe -- -h` for Ninja options (internal usage only; unstable)\n"
16671
16670
16672
16671
16673
16672
@@ -16715,14 +16714,14 @@ let build_subcommand ~start argv argv_len =
16715
16714
"-w", unit_set_spec watch_mode,
16716
16715
"Watch mode";
16717
16716
"-with-deps", unit_set_spec make_world,
16718
- "Build with deps ";
16717
+ "Build dependencies explicitly ";
16719
16718
"-install", unit_set_spec do_install,
16720
16719
"*internal* Install public interface files for dependencies ";
16721
16720
(* This should be put in a subcommand
16722
16721
previously it works with the implication `bsb && bsb -install`
16723
16722
*)
16724
16723
"-ws", string_set_spec (ref ""),
16725
- "[host]:port set the host, port for websocket build notifications";
16724
+ "[host]:port set up host & port for WebSocket build notifications";
16726
16725
"-regen", unit_set_spec force_regenerate,
16727
16726
"*internal* \n\
16728
16727
Always regenerate build.ninja no matter bsconfig.json is changed or not";
@@ -16761,14 +16760,14 @@ let clean_subcommand ~start argv =
16761
16760
Bsb_arg.parse_exn
16762
16761
~usage:clean_usage ~start ~argv [|
16763
16762
"-with-deps", unit_set_spec make_world,
16764
- "clean its deps too"
16763
+ "Clean dependencies too"
16765
16764
|] failed_annon;
16766
16765
if !make_world then
16767
16766
Bsb_clean.clean_bs_deps Bsb_global_paths.cwd ;
16768
16767
Bsb_clean.clean_self Bsb_global_paths.cwd
16769
16768
let init_usage = "Init the project\n\
16770
16769
rescript init [project-name]\n\
16771
- defaults to the current directory if not set\n\
16770
+ defaults to the current directory if [project-name] isn't set\n\
16772
16771
"
16773
16772
let init_subcommand ~start argv =
16774
16773
Bsb_arg.parse_exn
0 commit comments