From 4386a177592a3fe0382c9abe35c9bedfcf662e92 Mon Sep 17 00:00:00 2001 From: Alisue Date: Fri, 9 Jan 2026 21:59:16 +0900 Subject: [PATCH 1/2] fix(@probitas/probitas): allow --deno-reload as boolean flag Previously extractDenoOptions() enforced that only --deno-no-* options could be used without values, causing --deno-reload to fail. This was incorrect because Deno's --reload flag accepts optional values: --reload (reload all dependencies) --reload= (reload specific modules) Changes: - Removed strict validation from extractDenoOptions() to allow any --deno-* option without '=' to be treated as a boolean flag - Connected -r/--reload option to denoArgs (was previously unused) - Updated documentation to clarify "with value" vs "without value" - Added comprehensive tests for extractDenoOptions() Now these are all equivalent: probitas run -r probitas run --reload probitas run --deno-reload --- assets/usage-list.txt | 4 +- assets/usage-run.txt | 4 +- src/cli/commands/list.ts | 13 ++++++- src/cli/commands/run.ts | 13 ++++++- src/cli/utils.ts | 21 +++-------- src/cli/utils_test.ts | 79 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 110 insertions(+), 24 deletions(-) diff --git a/assets/usage-list.txt b/assets/usage-list.txt index 9f51f1a..4005981 100644 --- a/assets/usage-list.txt +++ b/assets/usage-list.txt @@ -18,8 +18,8 @@ Options: --no-env Skip loading .env file -r, --reload Reload dependencies before running --deno-