-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Conversation
} | ||
} | ||
|
||
parseDurationEnv("cockroach-max-offset", "max offset", &ctx.MaxOffset) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/-/_/g
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bah, fixed.
LGTM |
cli: remove unnecessary command line flags
fixes #4754
attn: @jseldess
This change is