Skip to content

docs(hook): fix the --base example in the pre-start upstream snippet - #3955

Merged
max-sixty merged 2 commits into
mainfrom
switch-explicit-track-flags
Aug 29, 2026
Merged

docs(hook): fix the --base example in the pre-start upstream snippet#3955
max-sixty merged 2 commits into
mainfrom
switch-explicit-track-flags

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

wt hook --help's pre-start example illustrated the upstream template variable with wt switch --create feature origin/feature, which the CLI rejects — wt switch takes no positional base:

$ wt switch --create feature origin/feature
error: unexpected argument 'origin/feature' found

Now --base origin/feature. The template snippet it annotates is unaffected.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 2 commits August 28, 2026 17:33
`wt switch --create feature origin/feature` is rejected — `wt switch` takes no
positional base, so the example errors with "unexpected argument". The template
snippet it illustrates is unaffected.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NBxMUZo7awheuY85PNXCjE
@max-sixty
max-sixty merged commit 59211c6 into main Aug 29, 2026
41 checks passed
@max-sixty
max-sixty deleted the switch-explicit-track-flags branch August 29, 2026 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants