From bb0580a9722a081638247bbd20548751a1424be6 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Wed, 16 Sep 2026 09:58:29 +0200 Subject: [PATCH] Document --dry flag and build from source in README --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index e8dd38cd..691cbd9d 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,14 @@ $this->handle("text"); // string -> parameter is left untyped go install github.com/rectorphp/argtyper@latest ``` +Or build from source: + +```bash +git clone https://github.com/rectorphp/argtyper +cd argtyper +make build # produces ./argtyper +``` + ## Usage ```bash @@ -116,6 +124,15 @@ argtyper add-types [project-path] `project-path` defaults to the current directory. The tool scans the `src`, `lib`, `app`, `test` and `tests` directories. +Preview the changes without writing them with `--dry`: + +```bash +argtyper add-types . --dry +``` + +It prints the diff of the types that would be added and leaves every file +untouched. +
## How it works