From f864793cfa090e3cdd63d8ac0155d14a94ac7f1c Mon Sep 17 00:00:00 2001 From: Roland Peelen Date: Sat, 25 May 2024 11:38:03 +0200 Subject: [PATCH] :memo: - Add or update documentation. --- README.md | 9 +++++++-- src/main.rs | 4 ++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f8cef7d..67ce418 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,8 @@ This project should be considered in beta status. We run it in production at [Wa Find this output by running `yarn rewatch --help`. ``` +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 + Usage: rewatch [OPTIONS] [COMMAND] [FOLDER] Arguments: @@ -69,10 +71,13 @@ Options: [possible values: true, false] --compiler-args - + 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 --rescript-version - + To be used in conjunction with compiler_args + + --bsc-path + A custom path to bsc -h, --help Print help (see a summary with '-h') diff --git a/src/main.rs b/src/main.rs index 0617373..3624035 100644 --- a/src/main.rs +++ b/src/main.rs @@ -45,12 +45,16 @@ struct Args { #[arg(short, long)] create_sourcedirs: Option, + /// 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 #[arg(long)] compiler_args: Option, + /// To be used in conjunction with compiler_args #[arg(long)] rescript_version: Option, + /// A custom path to bsc #[arg(long)] bsc_path: Option, }