go/flags/endtoend/FLAGS_PROJECT_README.md
Note: This document will be deleted once the flags migration project is done. It is intended as context for Claude to help with the tasks related to this project.
What we are doing as part of this project is to replace all underscores (_)s in the flag names to dashes (-)s. We need to be backwardly compatible with previous versions and support both versions in our apps.
The following files are useful for this project:
You can find some PRs that have done this in the list from: https://github.com/vitessio/vitess/pulls?q=is%3Apr+flags+author%3Amounicasruthi+is%3Amerged For example: https://github.com/vitessio/vitess/pull/17975, https://github.com/vitessio/vitess/pull/18296
We don't want to extend the usage of DualFormatVar for flags, because technically that supports a mix of dashes and underscores, and that is not what we want to do.
Sometimes tests fail due to upgrade/downgrade and we need to use the GetFlagVariantForTestsByVersion function
but that needs to be manually determined from the failures in the CI upgrade/downgrade tests. If you see this
function being used DO NOT replace it.
The binaries we are interested in: