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

cli: remove unnecessary command line flags #5033

Merged
merged 1 commit into from
Mar 9, 2016

Conversation

BramGruneir
Copy link
Member

fixes #4754

attn: @jseldess


This change is Review on Reviewable

}
}

parseDurationEnv("cockroach-max-offset", "max offset", &ctx.MaxOffset)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Environment variables are almost always all caps and separated with underscores. While this isn't required, people will look at us funny if we use lowercase env variables.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll change them all up. Expect and updated PR in a few mins.

Copy link
Member Author

Choose a reason for hiding this comment

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

done


resetEnvVar := func() {
// Reset all environment variables in case any were already set.
if err := os.Unsetenv("COCKROACH-LINEARIZABLE"); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

s/-/_/g

Copy link
Member Author

Choose a reason for hiding this comment

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

bah, fixed.

@petermattis
Copy link
Collaborator

LGTM

BramGruneir added a commit that referenced this pull request Mar 9, 2016
cli: remove unnecessary command line flags
@BramGruneir BramGruneir merged commit 58d0cc5 into cockroachdb:master Mar 9, 2016
@BramGruneir BramGruneir deleted the cli branch March 9, 2016 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cli: Remove unnecessary command line flags
3 participants