@@ -16662,12 +16662,11 @@ let ninja_command_exit (type t) (ninja_args : string array) : t =
1666216662 What will happen, some flags are really not good
1666316663 ninja -C _build
1666416664*)
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"
1667116670
1667216671
1667316672
@@ -16715,14 +16714,14 @@ let build_subcommand ~start argv argv_len =
1671516714 "-w", unit_set_spec watch_mode, 
1671616715 "Watch mode";
1671716716 "-with-deps", unit_set_spec make_world,
16718-  "Build with deps ";
16717+  "Build dependencies explicitly ";
1671916718 "-install", unit_set_spec do_install,
1672016719 "*internal* Install public interface files for dependencies ";
1672116720 (* This should be put in a subcommand
1672216721 previously it works with the implication `bsb && bsb -install`
1672316722 *)
1672416723 "-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";
1672616725 "-regen", unit_set_spec force_regenerate,
1672716726 "*internal* \n\
1672816727 Always regenerate build.ninja no matter bsconfig.json is changed or not";
@@ -16761,14 +16760,14 @@ let clean_subcommand ~start argv =
1676116760 Bsb_arg.parse_exn 
1676216761 ~usage:clean_usage ~start ~argv [|
1676316762 "-with-deps", unit_set_spec make_world,
16764-  "clean its deps  too"
16763+  "Clean dependencies  too"
1676516764 |] failed_annon;
1676616765 if !make_world then 
1676716766 Bsb_clean.clean_bs_deps Bsb_global_paths.cwd ; 
1676816767 Bsb_clean.clean_self Bsb_global_paths.cwd 
1676916768let init_usage = "Init the project\n\
1677016769 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\
1677216771 "
1677316772let init_subcommand ~start argv = 
1677416773 Bsb_arg.parse_exn 
0 commit comments