Skip to content

Commit f864793

Browse files
author
Roland Peelen
committed
📝 - Add or update documentation.
1 parent 4a97a8f commit f864793

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ This project should be considered in beta status. We run it in production at [Wa
4141
Find this output by running `yarn rewatch --help`.
4242

4343
```
44+
Rewatch is an alternative build system for the Rescript Compiler bsb (which uses Ninja internally). It strives to deliver consistent and faster builds in monorepo setups with multiple packages, where the default build system fails to pick up changed interfaces across multiple packages
45+
4446
Usage: rewatch [OPTIONS] [COMMAND] [FOLDER]
4547
4648
Arguments:
@@ -69,10 +71,13 @@ Options:
6971
[possible values: true, false]
7072
7173
--compiler-args <COMPILER_ARGS>
72-
74+
This prints the compiler arguments. It expects the path to a rescript.json file. This also requires --bsc-path and --rescript-version to be present
7375
7476
--rescript-version <RESCRIPT_VERSION>
75-
77+
To be used in conjunction with compiler_args
78+
79+
--bsc-path <BSC_PATH>
80+
A custom path to bsc
7681
7782
-h, --help
7883
Print help (see a summary with '-h')

src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,16 @@ struct Args {
4545
#[arg(short, long)]
4646
create_sourcedirs: Option<bool>,
4747

48+
/// This prints the compiler arguments. It expects the path to a rescript.json file.
49+
/// This also requires --bsc-path and --rescript-version to be present
4850
#[arg(long)]
4951
compiler_args: Option<String>,
5052

53+
/// To be used in conjunction with compiler_args
5154
#[arg(long)]
5255
rescript_version: Option<String>,
5356

57+
/// A custom path to bsc
5458
#[arg(long)]
5559
bsc_path: Option<String>,
5660
}

0 commit comments

Comments
 (0)