Skip to content

Commit 8885eeb

Browse files
alies-devclaude
andauthored
Fix --show-snippet option consuming next CLI argument (#11684)
The show-snippet long option was defined with a single colon (required value) instead of double colon (optional value), causing getopt() to silently consume the next argument as its value. Fixes #11683 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7cf3e8b commit 8885eeb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Psalm/Internal/Cli/Psalm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ final class Psalm
151151
'root:',
152152
'set-baseline::',
153153
'show-info:',
154-
'show-snippet:',
154+
'show-snippet::',
155155
'stats',
156156
'threads:',
157157
'scan-threads:',

0 commit comments

Comments
 (0)