Skip to content

Conversation

@gmagogsfm
Copy link
Contributor

@gmagogsfm gmagogsfm commented Dec 6, 2025

This error is confusing because -O.xx is too similar to -On which might confuse people. e.g. if a user does -O.2 thinking they're setting optimisation level but then they see an error suggesting they do -cc.2 which also won't work.

More context:
#29991 (comment)

Signed-off-by: Yanan Cao <gmagogsfm@gmail.com>
@gmagogsfm gmagogsfm changed the title Remove confusing -O.xx flag error [Frontend] Remove confusing -O.xx flag error Dec 6, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request removes a confusing error message for the deprecated -O.xx command-line flag by removing its special handling. This allows the standard argument parser to handle invalid values, which is a cleaner approach. The corresponding test is also removed. The changes are correct and improve the user experience by providing less confusing error messages. I have no further comments.

@gmagogsfm
Copy link
Contributor Author

@hmellor Hi, please see this PR for removing the confusing error.

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