Skip to content

add positional argument validation#3573

Merged
sougou merged 1 commit intovitessio:masterfrom
tinyspeck:handle-positional-arguments
Jan 23, 2018
Merged

add positional argument validation#3573
sougou merged 1 commit intovitessio:masterfrom
tinyspeck:handle-positional-arguments

Conversation

@demmer
Copy link
Copy Markdown
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
Copy Markdown
Contributor

sougou commented Jan 23, 2018

LGTM
Nice cleanup!

Approved with PullApprove

@sougou sougou merged commit faa0672 into vitessio:master Jan 23, 2018
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