Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Fix snapshot tests for optional command in help output

Maximilian Roosabea558cc855
diff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__source_flag_error_passthrough.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__source_flag_error_passthrough.snap
index aa97f8788..e99a9f780 100644
--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__source_flag_error_passthrough.snap
+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__source_flag_error_passthrough.snap
@@ -4,6 +4,6 @@ expression: output.normalized()
---
error: unrecognized subcommand 'foo'
-Usage: wt [OPTIONS] <COMMAND>
+Usage: wt [OPTIONS] [COMMAND]
For more information, try '--help'.
diff --git a/tests/snapshots/integration__integration_tests__help__help_no_args.snap b/tests/snapshots/integration__integration_tests__help__help_no_args.snap
index 00c49e29c..4b3a4743c 100644
--- a/tests/snapshots/integration__integration_tests__help__help_no_args.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_no_args.snap
@@ -17,7 +17,7 @@ exit_code: 0
----- stderr -----
wt - Git worktree management
-Usage: wt [OPTIONS] <COMMAND>
+Usage: wt [OPTIONS] [COMMAND]
Commands:
config Manage configuration and shell integration
diff --git a/tests/snapshots/integration__integration_tests__help__help_root_long.snap b/tests/snapshots/integration__integration_tests__help__help_root_long.snap
index 5c3c782ef..d84cb0d09 100644
--- a/tests/snapshots/integration__integration_tests__help__help_root_long.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_root_long.snap
@@ -18,7 +18,7 @@ exit_code: 0
----- stderr -----
wt - Git worktree management
-Usage: wt [OPTIONS] <COMMAND>
+Usage: wt [OPTIONS] [COMMAND]
Commands:
config Manage configuration and shell integration
diff --git a/tests/snapshots/integration__integration_tests__help__help_root_short.snap b/tests/snapshots/integration__integration_tests__help__help_root_short.snap
index 52585dbfc..b80627236 100644
--- a/tests/snapshots/integration__integration_tests__help__help_root_short.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_root_short.snap
@@ -18,7 +18,7 @@ exit_code: 0
----- stderr -----
wt - Git worktree management
-Usage: wt [OPTIONS] <COMMAND>
+Usage: wt [OPTIONS] [COMMAND]
Commands:
config Manage configuration and shell integration