Skip to content

Fix explicit empty long-flag values#479

Merged
ryanfowler merged 1 commit intomainfrom
fix-empty-longflag-values
Apr 19, 2026
Merged

Fix explicit empty long-flag values#479
ryanfowler merged 1 commit intomainfrom
fix-empty-longflag-values

Conversation

@ryanfowler
Copy link
Copy Markdown
Owner

Summary

  • Treat --flag= as an explicit empty value instead of consuming the next token
  • Preserve the following argument as the URL when a long flag is passed with = but no value
  • Add regression coverage for --output= and empty-valued long flags

Testing

  • go test -v ./internal/cli
  • go test -v ./...

@ryanfowler ryanfowler enabled auto-merge April 19, 2026 21:04
@ryanfowler ryanfowler merged commit 7e8dfd9 into main Apr 19, 2026
10 checks passed
@ryanfowler ryanfowler deleted the fix-empty-longflag-values branch April 19, 2026 21:06
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.

1 participant