Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a vtgate check that verifies there are no positional arguments #3572

Closed

Conversation

demmer
Copy link
Member

@demmer demmer commented Jan 22, 2018

Ignore all positional arguments in the vtgate command binary rather than silently ignoring them.

@sougou
Copy link
Contributor

sougou commented Jan 23, 2018

Could you add this check to vttablet also?

@acharis
Copy link
Contributor

acharis commented Jan 23, 2018

👍
it's already in vttablet and vtcombo
maybe we want it in vtctld and friends?

@acharis
Copy link
Contributor

acharis commented Jan 23, 2018

and as long as we're handling this class of error, maybe instead of flag.Usage() which puts a bunch of stuff in logs and can easily be obtained by a person, is there an easy way to print out what the flags library thinks the positional args are?

@demmer
Copy link
Member Author

demmer commented Jan 23, 2018

@sougou @acharis thanks for the feedback -- I'm going to close this in favor of the more thorough #3573

@demmer demmer closed this Jan 23, 2018
frouioui pushed a commit to planetscale/vitess that referenced this pull request Mar 26, 2024
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.

4 participants