Skip to content

fix(cli): prevent bandwidth waste on invalid output format - #502

Merged
kaifcodec merged 1 commit into
mainfrom
fix/early-export-validation
Aug 4, 2026
Merged

fix(cli): prevent bandwidth waste on invalid output format#502
kaifcodec merged 1 commit into
mainfrom
fix/early-export-validation

Conversation

@kaifcodec

Copy link
Copy Markdown
Owner
  • Moved the output format (-f) validation logic to trigger earlier in __main__.py
  • Ensures output format errors fail fast, before proxy initialization, update checks, or network scans occur
  • Placed validation strictly after the early-exit flags (--update, --version, --list-user, --list-email, and missing target --help checks) to fully preserve utility command functionality

@kaifcodec kaifcodec added the bug fix Fixed a bug in existing files label Aug 4, 2026
@kaifcodec kaifcodec self-assigned this Aug 4, 2026
@kaifcodec
kaifcodec requested a review from json-hunter07 August 4, 2026 09:52

@json-hunter07 json-hunter07 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kaifcodec It LGTM.

@kaifcodec
kaifcodec merged commit 736cbfc into main Aug 4, 2026
5 checks passed
@kaifcodec

Copy link
Copy Markdown
Owner Author

Thanks for the review @json-hunter07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix Fixed a bug in existing files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants