Skip to content

Conversation

@bl3ck
Copy link
Contributor

@bl3ck bl3ck commented May 14, 2025

Description

This PR contains a final commit from PR #443 that addresses @hangfei’s feedback. The original PR was closed before this change was merged.

It introduces a static method, _format_missing_arg_error, to ensure that missing argument names in error messages preserve the correct case and match the original argument names in the CLI.

Before

Image

After

fix-match-arg-case

How to Test

  • Run adk create without specifying APP_NAME
  • Run adk run without specifying AGENT
  • Run adk eval without specifying AGENT_MODULE_FILE_PATH

@hangfei hangfei added the ready to pull [Status] This PR is ready to be importing back to Google label May 29, 2025
copybara-service bot pushed a commit that referenced this pull request May 30, 2025
--
d9b0a6f by Eugen-Bleck <eugenbleck@gmail.com>:

fix: match arg case in errors
COPYBARA_INTEGRATE_REVIEW=#724 from bl3ck:fix/preserve-arg-case-in-errors 3ac43ef
PiperOrigin-RevId: 764953570
@hangfei
Copy link
Collaborator

hangfei commented May 30, 2025

@bl3ck merged in this commit: b226a06. Thanks!

@hangfei hangfei closed this May 30, 2025
whhlct pushed a commit to whhlct/adk-python that referenced this pull request Jun 6, 2025
--
d9b0a6f by Eugen-Bleck <eugenbleck@gmail.com>:

fix: match arg case in errors
COPYBARA_INTEGRATE_REVIEW=google#724 from bl3ck:fix/preserve-arg-case-in-errors 3ac43ef
PiperOrigin-RevId: 764953570
coder-aditi pushed a commit to coder-aditi/adk-python that referenced this pull request Jul 2, 2025
--
d9b0a6f by Eugen-Bleck <eugenbleck@gmail.com>:

fix: match arg case in errors
COPYBARA_INTEGRATE_REVIEW=google#724 from bl3ck:fix/preserve-arg-case-in-errors 3ac43ef
PiperOrigin-RevId: 764953570
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to pull [Status] This PR is ready to be importing back to Google

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants