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 positional argument validation #3573

Merged
merged 1 commit into from
Jan 23, 2018

Conversation

demmer
Copy link
Member

@demmer demmer commented Jan 23, 2018

Add servenv.ParseFlags and servenv.ParseFlagsAndArgs to handle the
common logic around parsing flags, handling the -version flag to
print version, and verify that positional arguments either are or
are not supplied as expected.

This addresses a current issue in which vtgate (and possibly other) commands
silently ignore any positional arguments.

Add servenv.ParseFlags and servenv.ParseFlagsAndArgs to handle the
common logic around parsing flags, handling the -version flag to
print version, and verify that positional arguments either are or
are not supplied as expected.
@demmer demmer force-pushed the handle-positional-arguments branch from cc68b87 to 489c422 Compare January 23, 2018 05:24
@sougou
Copy link
Contributor

sougou commented Jan 23, 2018

LGTM
Nice cleanup!

Approved with PullApprove

@sougou sougou merged commit faa0672 into vitessio:master Jan 23, 2018
frouioui pushed a commit to planetscale/vitess that referenced this pull request Mar 26, 2024
Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
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.

3 participants